|
@@ -25,6 +25,11 @@ namespace Cbdx.Tests
|
|
|
QuitReferenceAssembly();
|
|
|
}
|
|
|
|
|
|
+ private static void RegisterAssemblyResolvePolicy()
|
|
|
+ {
|
|
|
+ AppDomain.CurrentDomain.AssemblyResolve += OnCurrentDomainOnAssemblyResolve;
|
|
|
+ }
|
|
|
+
|
|
|
private static void InitReferenceAssembly()
|
|
|
{
|
|
|
CefInit.Init();
|
|
@@ -35,12 +40,7 @@ namespace Cbdx.Tests
|
|
|
CefInit.Quit();
|
|
|
}
|
|
|
|
|
|
- private static void RegisterAssemblyResolvePolicy()
|
|
|
- {
|
|
|
- AppDomain.CurrentDomain.AssemblyResolve += OnCurrentDomainOnAssemblyResolve;
|
|
|
- }
|
|
|
-
|
|
|
- private static Assembly OnCurrentDomainOnAssemblyResolve(object sender1, ResolveEventArgs args1)
|
|
|
+ private static Assembly OnCurrentDomainOnAssemblyResolve(object sender, ResolveEventArgs args)
|
|
|
{
|
|
|
//1.search in reqAsm dir + arch
|
|
|
//2.search in reqAsm dir
|
|
@@ -82,4 +82,4 @@ namespace Cbdx.Tests
|
|
|
return null;
|
|
|
}
|
|
|
}
|
|
|
-}
|
|
|
+}
|