Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Make the cache load the generated assembly using Assembly.LoadFrom so…

… that Fusion automatically tries to load any assembly references automatically.
  • Loading branch information...
commit 1691e3fbede39e1eb626fff6532da36dc1a49912 1 parent 15f1dd6
Howard van Rooijen authored January 13, 2012

Showing 1 changed file with 3 additions and 2 deletions. Show diff stats Hide diff stats

  1. 5  Rhino.DSL/DslCompilerContextCache.cs
5  Rhino.DSL/DslCompilerContextCache.cs
@@ -94,8 +94,9 @@ private CompilerContext LoadCompilerContext(string file)
94 94
 				{
95 95
 					WriteLock(delegate
96 96
 					{
97  
-						byte[] bytes = File.ReadAllBytes(file);
98  
-						assembly = Assembly.Load(bytes);
  97
+						// Use Assembly.LoadFrom so that Fusion tries to resolve
  98
+						// any assembly dependencies.
  99
+						assembly = Assembly.LoadFrom(file);
99 100
 						assemblyCache[file] = assembly;
100 101
 						AssemblyLoaded(file, assembly, true);
101 102
 					});

0 notes on commit 1691e3f

Please sign in to comment.
Something went wrong with that request. Please try again.