Disassembly from a .NET Core 6.0 app #2727
-
I've got a .NET core app in 6.0. My code is very simple (and I may be doing stuff completely wrong. If there are docs on this stuff, a pointer to them would be great). The code is adapted from a snippet I found in a google search.
When it hits the OpenAssembly call, it gave me an error that it couldn't find PresentationFramework 4.0. So I added the following to my .csproj:
I reran it and that went away, but then I got the same error for WindowsBase. I added a similar link for WindowsBase, but the error never went away.
My IL Spy version info: ILSpy version 7.2.1.6856 Out of ideas. I'm sure there's a better way to do this. I'd love to learn it. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Are you trying to write a plugin for ILSpy? Or are you trying to use the decompiler in your own application? |
Beta Was this translation helpful? Give feedback.
-
When using the decompiler, use class CSharpDecompiler. There is no need to reference ILSpy.exe -- |
Beta Was this translation helpful? Give feedback.
Are you trying to write a plugin for ILSpy? Or are you trying to use the decompiler in your own application?