This commit is contained in:
David Fowler 2014-05-28 01:59:51 -07:00
parent d8ba998dec
commit 812d5328d2
1 changed files with 4 additions and 2 deletions

View File

@ -71,14 +71,16 @@ namespace Microsoft.AspNet.Mvc.Razor.Compilation
}
Assembly assembly = null;
ms.Seek(0, SeekOrigin.Begin);
if (PlatformHelper.IsMono)
{
assembly = _loader.LoadBytes(ms.ToArray(), pdbBytes: null);
assembly = _loader.LoadStream(ms, pdbStream: null);
}
else
{
assembly = _loader.LoadBytes(ms.ToArray(), pdb.ToArray());
pdb.Seek(0, SeekOrigin.Begin);
assembly = _loader.LoadStream(ms, pdb);
}
var type = assembly.GetExportedTypes()