Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Commit

Permalink
Remove use of AssemblyLoadContext
Browse files Browse the repository at this point in the history
This will be needed for the switch back to net46.
  • Loading branch information
rynowak committed May 24, 2017
1 parent a6d97d3 commit 6094c6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ private static void EnsureFeatureAssembly(AssemblyPart assemblyPart)
{
try
{
AssemblyLoadContext.Default.LoadFromAssemblyPath(precompiledAssemblyFilePath);
Assembly.LoadFile(precompiledAssemblyFilePath);
}
catch (FileLoadException)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ private static bool IsError(Diagnostic diagnostic)

public static Assembly LoadAssembly(MemoryStream assemblyStream, MemoryStream pdbStream)
{
var assembly = AssemblyLoadContext.Default.LoadFromStream(assemblyStream, pdbStream);
var assembly = Assembly.Load(assemblyStream.ToArray(), pdbStream.ToArray());
return assembly;
}

Expand Down

0 comments on commit 6094c6f

Please sign in to comment.