I am bundling the ClearScript DLLs as embedded resources in my main application/dll. At runtime I extract ClearScriptV8-XX.dll and v8-xXX.dll to a temporary path (typically Temporary ASP.NET Files) so that they can be loaded from disk.
In order to support this I have added a simple static API which allows adding custom locations returned by V8Proxy.GetDirPaths. It would be ideal if some equivalent functionality were included in the library.
This issue is somewhat related to https://clearscript.codeplex.com/workitem/17
Comments: I was able to test this today. I modified V8Proxy.LoadAssembly(): private static void LoadAssembly() { try { assembly = Assembly.Load("ClearScriptV8"); return; } catch (FileNotFoundException) { } if (LoadNativeLibrary()) ..... Using AssemblyResolve I was able to load ClearScriptV8 and, as you said, it automatically loaded the v8 native DLL and the test passed. Good stuff.
In order to support this I have added a simple static API which allows adding custom locations returned by V8Proxy.GetDirPaths. It would be ideal if some equivalent functionality were included in the library.
This issue is somewhat related to https://clearscript.codeplex.com/workitem/17
Comments: I was able to test this today. I modified V8Proxy.LoadAssembly(): private static void LoadAssembly() { try { assembly = Assembly.Load("ClearScriptV8"); return; } catch (FileNotFoundException) { } if (LoadNativeLibrary()) ..... Using AssemblyResolve I was able to load ClearScriptV8 and, as you said, it automatically loaded the v8 native DLL and the test passed. Good stuff.