Skip to content

Commit

Permalink
Merge pull request #2 from endjin/master
Browse files Browse the repository at this point in the history
Fix for System.InvalidOperationException: Could not find the generated type for: C:\Temp\Scripts\TestScript.boo
  • Loading branch information
ayende committed Jan 13, 2012
2 parents 15f1dd6 + 1691e3f commit 24fcdf3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Rhino.DSL/DslCompilerContextCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit 24fcdf3

Please sign in to comment.