Closed jnm2 closed 4 years ago
@jnm2 this is currently failing during integration tests
Nice!
@sharwell On the master branch, Mono.Cecil is resolving mscorlib from the GAC as the core library for netstandard1.6
reference assemblies (e.g. microsoft.win32.primitives\4.3.0\ref\netstandard1.3\Microsoft.Win32.Primitives.dll
).
The failure is due to this PR removing GAC loading which causes module.TypeSystem.Object.Resolve().Module
to throw NRE instead of loading mscorlib from Framework64.
I think the fix may require the target to resolve the netstandard1.6 core library (netstandard.dll?) and pass the path as a new parameter to the annotator. Going to get the targets PR merged first.
Failing with System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\projects\referenceassemblyannotator\tests\.isolatednugetcache\netstandard.library\2.0.3\build\netstandard2.0\ref\netstandard.dll'.
I verified locally that this happens to be fixed if I cherry-pick the first commit of #67.
Rebased now that https://github.com/tunnelvisionlabs/ReferenceAssemblyAnnotator/pull/67 is merged (rebasing wasn't needed, but I also wanted to retrigger CI)
@sharwell CI passed.
Contributes to #53.
Total assembly resolve time is 964 ms (version 1.0.0-alpha.99.g7d2f4a388d):
Where alpha.97 took 8328 ms:
Total time is now 17.4 seconds: