You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assembly contains a reference to specific mscorlib version
Referenced mscorlib is not available in same directory as the assembly, exception is raised
If the mscorelib is copied into the directory of the assembly, the exception is not thrown
Seems, that the tool tries to process a referenced assembly, even if it is not available.
Error message shown
System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
bei ICSharpCode.Decompiler.Metadata.MetadataExtensions.ToHexString(IEnumerable`1 bytes, Int32 estimatedLength)
bei ICSharpCode.Decompiler.Metadata.UniversalAssemblyResolver.GetCorlib(IAssemblyReference reference)
bei ICSharpCode.Decompiler.Metadata.UniversalAssemblyResolver.ResolveInternal(IAssemblyReference name)
bei ICSharpCode.Decompiler.Metadata.UniversalAssemblyResolver.FindAssemblyFile(IAssemblyReference name)
bei ICSharpCode.ILSpy.LoadedAssembly.LookupReferencedAssemblyInternal(IAssemblyReference fullName, Boolean isWinRT, String tfm)
bei System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
bei ICSharpCode.ILSpy.LoadedAssembly.LookupReferencedAssembly(IAssemblyReference reference)
bei ICSharpCode.ILSpy.LoadedAssembly.MyAssemblyResolver.Resolve(IAssemblyReference reference)
bei ICSharpCode.Decompiler.TypeSystem.DecompilerTypeSystem..ctor(PEFile mainModule, IAssemblyResolver assemblyResolver, TypeSystemOptions typeSystemOptions)
bei ICSharpCode.ILSpy.CSharpLanguage.DecompileAssembly(LoadedAssembly assembly, ITextOutput output, DecompilationOptions options)
bei ICSharpCode.ILSpy.TreeNodes.AssemblyTreeNode.Decompile(Language language, ITextOutput output, DecompilationOptions options)
bei ICSharpCode.ILSpy.TextView.DecompilerTextView.DecompileNodes(DecompilationContext context, ITextOutput textOutput)
bei ICSharpCode.ILSpy.TextView.DecompilerTextView.<>c__DisplayClass48_0.<DecompileAsync>b__0()
Details
Product in use: e.g. ILSpy / ICSharpCode.Decompiler nuget package / VS extension
Version in use: e.g. 6.0.0 or a commit hash (use Help>About to see which ILSpy version you are using)
Any other relevant information to the issue, or your interest in contributing a fix.
The text was updated successfully, but these errors were encountered:
We could always fix this by allowing the public key token to be null and fall back to "b77a5c561934e089", but I am not sure, whether there are assemblies where this wouldn't introduce more subtle bugs.
The package contains the mscorlib version with underscore. Trying to open a class in PLCnextBase_1_3_0.dll results in the exception described above. No exception occurs after rename of __mscorlib.dll to mscorlib.dll.
Steps to reproduce
Seems, that the tool tries to process a referenced assembly, even if it is not available.
Error message shown
Details
The text was updated successfully, but these errors were encountered: