ILSpy
ILSpy copied to clipboard
Assembly could not be loaded
// C:\***\***.exe
// PE file does not contain any managed metadata.
ICSharpCode.Decompiler.Metadata.PEFileNotSupportedException: PE file does not contain any managed metadata.
in ICSharpCode.Decompiler.Metadata.PEFile..ctor(String fileName, PEReader reader, MetadataReaderOptions metadataOptions)
in ICSharpCode.ILSpy.LoadedAssembly.LoadAssembly(Object state)
in System.Threading.Tasks.Task`1.InnerInvoke()
in System.Threading.Tasks.Task.Execute()
what can I do? I get the warning in the title, and the premius quote is the detailed errors
Seems like this assembly was not created using a compiler for managed programming languages (C#, F#, VB.NET, etc.) ILSpy cannot read unmanaged binaries. You will have to use a decompiler/diassembler for native code instead.
Idea: we could display more information from the PE Header(s) to make it easier to differentiate corrupted managed assemblies from pure native binaries.
I ran into a similar issue today when trying to decompile a Xamarin app and someone actually solved it.
You can run a smally python script to decompress the DLL.
Source: Decompressing Xamarin DLLs
i have extracted apk but do not find assembly files , only meta data file but when i drag and drop that meta deta into llspy it throws this error