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.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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
myTypes.Single(...)
is decompiled intoEnumerable.Single(myTypes,...)
. While I am aware the code is technically the same, the goal is to have the output aligned with the ILSpy ouyput.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.
All reactions