Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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
commit 24fcdf3aa4cd56250840cf7100ec5bfd64c7cce3 2 parents 15f1dd6 + 1691e3f
@ayende authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 Rhino.DSL/DslCompilerContextCache.cs
View
5 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);
});
Please sign in to comment.
Something went wrong with that request. Please try again.