Permalink
Browse files

Merge pull request #2 from endjin/master

Fix for System.InvalidOperationException: Could not find the generated type for: C:\Temp\Scripts\TestScript.boo
  • Loading branch information...
2 parents 15f1dd6 + 1691e3f commit 24fcdf3aa4cd56250840cf7100ec5bfd64c7cce3 @ayende committed Jan 13, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 Rhino.DSL/DslCompilerContextCache.cs
@@ -94,8 +94,9 @@ private CompilerContext LoadCompilerContext(string file)
{
WriteLock(delegate
{
- byte[] bytes = File.ReadAllBytes(file);
- assembly = Assembly.Load(bytes);
+ // Use Assembly.LoadFrom so that Fusion tries to resolve
+ // any assembly dependencies.
+ assembly = Assembly.LoadFrom(file);
assemblyCache[file] = assembly;
AssemblyLoaded(file, assembly, true);
});

0 comments on commit 24fcdf3

Please sign in to comment.