VS22 GoToDefinition vs PeakDefinition

Ondřej Šafránek 1 Reputation point
2022-03-29T17:05:15.333+00:00

Hi please help with this behaviour from VS22. Previous version was OK.

I make dll plugin in vb.net for autocad and my project is in vb.net. When I click right to some class (from referenced dll file) and select GoToDefinition, metadata are in Csharp, but I want it in vb.net. In previous times it was OK. And strange is when i select PeakDefinition, its OK in vb.net.

From begining metadata in Csharp when I use GoToDefinition:

region Assembly Acdbmgd, Version=24.1.0.0, Culture=neutral, PublicKeyToken=null

// location unknown
// Decompiled with ICSharpCode.Decompiler 6.1.0.5902

endregion

...and this one from metadata corectly in vb.net when I use PeakDefinition:

Region "Assembly Acdbmgd, Version=24.1.0.0, Culture=neutral, PublicKeyToken=null"

' C:\Autodesk\ObjectARX_for_AutoCAD_2022_Win_64bit_dlm\inc\AcDbMgd.dll

End Region

Why the location is unknown when use GoToDef?

Thank you

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,125 questions
{count} votes