codemerx / CodemerxDecompile

The first standalone .NET decompiler for Mac, Linux and Windows
https://decompiler.codemerx.com
GNU Affero General Public License v3.0
278 stars 17 forks source link

Support for opening self-contained assemblies directly #118

Open OreoByte opened 1 month ago

OreoByte commented 1 month ago

CodemerxDecompile works well with binaries that have been compiled with mono but not with Visual Studio

Tested with a simple C sharp console app. With just a simple hello world program. Compiled as a release or stand alone binary as "self contained"

Both return the error: The assembly AssemblyName.exe is not a valid CLR assembly

Even if you attempt to view the assembly on Windows with CodemerxDecompile

image

image

image

image

image

UlyssesWu commented 1 month ago

It's not a valid CLR assembly after all. You have to extract assemblies from a self contained exe first. However, Adding a feature to extract dlls from self contained exe directly will be nice. ILSpy 9 can handle this.

atdimitrov commented 14 hours ago

@OreoByte thank you for the detailed error report. @UlyssesWu is right though - self container assemblies are not CLR assemblies, but native ones. And yes, having this as a built-in feature would be really nice. Thank you for the suggestion, @UlyssesWu.