File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ public static nanoTablesContext GetTestNFAppNanoTablesContext()
2929 {
3030 nanoTablesContext ret = null ;
3131
32- var assemblyDefinition = GetTestNFAppAssemblyDefinition ( ) ;
32+ var assemblyDefinition = GetTestNFAppAssemblyDefinitionWithLoadHints ( ) ;
3333
3434 ret = new nanoTablesContext (
3535 assemblyDefinition ,
@@ -223,9 +223,15 @@ public static AssemblyDefinition GetTestNFAppAssemblyDefinition()
223223
224224 public static AssemblyDefinition GetTestNFAppAssemblyDefinitionWithLoadHints ( )
225225 {
226+ IDictionary < string , string > loadHints = new Dictionary < string , string > ( StringComparer . Ordinal )
227+ {
228+ [ "mscorlib" ] = GetmscorlibAssemblyDefinition ( ) . MainModule . FileName ,
229+ [ "TestNFClassLibrary" ] = GetTestNFClassLibraryDefinition ( ) . MainModule . FileName
230+ } ;
231+
226232 return AssemblyDefinition . ReadAssembly (
227233 TestNFAppFullPath ,
228- new ReaderParameters { AssemblyResolver = ProvideLoadHints ( ) } ) ;
234+ new ReaderParameters { AssemblyResolver = new LoadHintsAssemblyResolver ( loadHints ) } ) ;
229235 }
230236
231237
You can’t perform that action at this time.
0 commit comments