-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot decompile self-contained executables (PublishSingleFile) #2013
Comments
See also dotnet/runtime#36590 for an overview of the different types of executables. See https://github.com/dotnet/designs/tree/master/accepted/2020/single-file for more details -- note there are different designs for .NET Core 3 and .NET 5. |
@cshung do you happen to have any additional pointers for us? Thanks. |
Fix #2013: Add option to extract self-contained executables (PublishSingleFile).
Reopened: the first approach using Microsoft.NET.HostModel.dll had problems (including a security vulnerability) and had to be reverted. See #2022. |
Over the past few months we had a couple of private discussions that touched this topic. I will try to summarize beginning with the current status (as well as partial implementations that we had):
You can see already that the visual assembly list is not really an assembly list (how it would be used by the decompiler). Actually, it contains a list of files that contain assemblies. That tripped me off badly when discussing the code with Siegi because we kept going from one type of assembly list (the visual one) to the actual one used by the decompiler. Thus I was proposing to add a disambiguation to the code by splitting the classes - one for the visual UI, one for the decompiler. My proposal was Next I stumbled across async-Task-starting ctors (related because in nupkg & sfx: no fancy class hierarchies, stick with something simple like LoadNuGetPackage and LoadSfx. |
It's supported since in ILSpy 7.0 Preview 1. |
See https://stackoverflow.com/questions/60026667/can-net-core-3-self-contained-single-executable-be-decompiled
It would be useful if ILSpy could open these, e.g. similar to how we open
.nupkg
files.The text was updated successfully, but these errors were encountered: