Skip to content

Fix for System.InvalidOperationException: Could not find the generated type for: C:\Temp\Scripts\TestScript.boo #2

Merged
merged 1 commit into from Jan 13, 2012
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);
});
Something went wrong with that request. Please try again.