dotnet / dotnet/roslyn

[Visual Studio] F12 Go to Definition PlatformNotSupportedException

Open
#78,693 0 comments 0 reactions 0 assignees View on GitHub
Area-IDE untriaged
Dominant language
C#
Stars
20.7k
Forks
4.3k
PR merge metrics
PR metrics pending

Description

**Version Used**:
Windows 11 23H2, VS 17.14, .NET 9.0.5

**Steps to Reproduce**:

1. Add System.Management.dll to project
2. Hit F12 on a type located in System.Management
3. PlatformNotSupportedException everywhere

**Expected Behavior**:
I would expect VS to go into the correct assembly for the current platform (e.g. Windows, x64) and decompile the correct code.

**Actual Behavior**:
Instead VS decompiles a useless assembly with PlatformNotSupportedException everywhere.

Related: https://github.com/icsharpcode/ILSpy/issues/3477

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.