Open fandrei opened 1 year ago
Missing PublicKeyToken.
@pengweiqhca that doesn't matter.
DefaultAssemblyResolver
is not able to resolve many assemblies if you check its source code (and BaseAssemblyResolver
). You need to add search directories to guide it.
You might read https://github.com/jbevain/cecil/discussions/802 to study a similar case.
This code successfully resolves the assembly when executed from a .NET 6 app, but it fails in a .NET 4.8.1 app: