ILSpy => myArray.Single where CSharpDecompiler.DecompileWholeModuleAsString => Enumerable.Single #3162
-
Let me begin with praising this fantastic API which I believe have multiple use-cases. I am hoping someone on this forum can provide insight into the following: When I use ILSpy to decompile a particular .NET Standard 2.0 assembly, this is the output of the decompile logic:
However, when I use the ICSharpCode.Decompiler directly in a C# .NET8 console program I get the following:
Notice that the This is the code used to decompile from the console program:
Can anyone bring insight and hints which can help me align the output of the Console program to the output of ILSpy? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The problem here is that the target framework parameter of the assembly resolver needs to consist of a framework name and version, just as TargetFrameworkAttribute specifies. In your case that would be ".NETStandard,Version=2.0". |
Beta Was this translation helpful? Give feedback.
The problem here is that the target framework parameter of the assembly resolver needs to consist of a framework name and version, just as TargetFrameworkAttribute specifies. In your case that would be ".NETStandard,Version=2.0".