Skip to content

Decompiler needs to be updated to decompile .NET 10 assemblies #78161

@gregg-miskelly

Description

@gregg-miskelly

Version Used: Visual Studio 18.0.0 Preview 1.0 [10510.66.main] / ICSharpCode.Decompiler Version 8.2.0.7535

Summary of the issue:
The version of ICSharpCode.Decompiler that ships with Rosyln cannot decompile .NET 10 binaries. This was fixed with icsharpcode/ILSpy#3349, which shipped in their 9.0 release, but VS isn't shipping 9.0 yet. I am opening this issue to track updating Rosyln to 9.0 (or updating in some other way if that is impossible for some reason).
 
Steps to Reproduce:

  1. Create a .NET 10 class library
  2. Add a "Hello World" method to it
  3. Build it
  4. Delete the PDB to ensure that the only way to allow "Go to definition" to work is through decompilation
  5. Make a second project and reference the class library dll directly
  6. Add a call to the hello world method
  7. Right click on it and invoke Go To Definition

Expected Behavior:

Go to definition should decompile the class library

Actual Behavior:

Decompilation will fail and the metadata view will be used instead

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions