File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
src/BenchmarkDotNet.TestAdapter Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,26 @@ public static BenchmarkRunInfo[] GetBenchmarksFromAssemblyPath(string assemblyPa
3838 }
3939 }
4040
41+ if ( eventArgs . Name . StartsWith ( "System.Collections.Immutable, Version=" ) )
42+ {
43+ var baseDir = Path . GetDirectoryName ( assemblyPath ) ;
44+ var path = Path . Combine ( baseDir , "System.Collections.Immutable.dll" ) ;
45+ if ( File . Exists ( path ) )
46+ {
47+ return Assembly . LoadFrom ( path ) ;
48+ }
49+ }
50+
51+ if ( eventArgs . Name . StartsWith ( "System.Memory, Version=" ) )
52+ {
53+ var baseDir = Path . GetDirectoryName ( assemblyPath ) ;
54+ var path = Path . Combine ( baseDir , "System.Memory.dll" ) ;
55+ if ( File . Exists ( path ) )
56+ {
57+ return Assembly . LoadFrom ( path ) ;
58+ }
59+ }
60+
4161 // Fallback to default assembly resolver
4262 return null ;
4363 } ;
You can’t perform that action at this time.
0 commit comments