@@ -336,29 +336,29 @@ private static bool ShouldSkipPath(string path)
336
336
string name = Path . GetFileName ( path ) . ToLowerInvariant ( ) ;
337
337
switch ( name )
338
338
{
339
- case "cqo.dll" :
340
- case "fasttreenative.dll" :
341
- case "libiomp5md.dll" :
342
- case "libvw.dll" :
343
- case "matrixinterf.dll" :
344
- case "Microsoft.ML.neuralnetworks.gpucuda.dll" :
345
- case "MklImports.dll" :
346
- case "microsoft.research.controls.decisiontrees.dll" :
347
- case "Microsoft.ML.neuralnetworks.sse.dll" :
348
- case "neuraltreeevaluator.dll" :
349
- case "optimizationbuilderdotnet.dll" :
350
- case "parallelcommunicator.dll" :
351
- case "Microsoft.ML.Runtime.RunTests.dll" :
352
- case "scopecompiler.dll" :
353
- case "tbb.dll" :
354
- case "Internallearnscope.dll" :
355
- case "unmanagedlib.dll" :
356
- case "vcclient.dll" :
357
- case "libxgboost.dll" :
358
- case "zedgraph.dll" :
359
- case "__scopecodegen__.dll" :
360
- case "cosmosClientApi.dll" :
361
- return true ;
339
+ case "cqo.dll" :
340
+ case "fasttreenative.dll" :
341
+ case "libiomp5md.dll" :
342
+ case "libvw.dll" :
343
+ case "matrixinterf.dll" :
344
+ case "Microsoft.ML.neuralnetworks.gpucuda.dll" :
345
+ case "MklImports.dll" :
346
+ case "microsoft.research.controls.decisiontrees.dll" :
347
+ case "Microsoft.ML.neuralnetworks.sse.dll" :
348
+ case "neuraltreeevaluator.dll" :
349
+ case "optimizationbuilderdotnet.dll" :
350
+ case "parallelcommunicator.dll" :
351
+ case "Microsoft.ML.Runtime.RunTests.dll" :
352
+ case "scopecompiler.dll" :
353
+ case "tbb.dll" :
354
+ case "Internallearnscope.dll" :
355
+ case "unmanagedlib.dll" :
356
+ case "vcclient.dll" :
357
+ case "libxgboost.dll" :
358
+ case "zedgraph.dll" :
359
+ case "__scopecodegen__.dll" :
360
+ case "cosmosClientApi.dll" :
361
+ return true ;
362
362
}
363
363
364
364
foreach ( var s in FilePrefixesToAvoid )
@@ -567,14 +567,14 @@ private static MethodInfo FindInstanceGetter(Type instType, Type loaderType)
567
567
568
568
private static MethodInfo FindCreateMethod ( Type instType , Type loaderType , Type [ ] parmTypes )
569
569
{
570
- var meth = loaderType . GetMethod ( "Create" , parmTypes ?? Type . EmptyTypes ) ;
570
+ var meth = loaderType . GetMethod ( "Create" , BindingFlags . Public | BindingFlags . Static | BindingFlags . NonPublic | BindingFlags . FlattenHierarchy , null , parmTypes ?? Type . EmptyTypes , null ) ;
571
571
if ( meth == null )
572
572
return null ;
573
573
if ( meth . DeclaringType != loaderType )
574
574
return null ;
575
575
if ( meth . ReturnType != instType )
576
576
return null ;
577
- if ( ! meth . IsPublic || ! meth . IsStatic )
577
+ if ( ! meth . IsStatic )
578
578
return null ;
579
579
return meth ;
580
580
}
0 commit comments