How to fix "Go To Definition" jumping into metadata in Visual Studio 2022

Wojciech Rajchel | reconline AG 0 Reputation points
2025-05-12T11:17:04.7233333+00:00

Hi

I have a dll c# project. This project is referenced as a project from other .Net projects. The referenced project is added as existing project to a solution. The function Go To Definition always jumps into metadata of the dll project. I tried multiple hints, deleting .vs file, setting various options under Debug settings, clearing solution etc. The dll project has many classes. To test the issue I removed almost all classes and leaved only one class with one method. It worked and Go To Definition jumped correctly into actual code. Next I tried to delete classes with external references such as database dll references step by step to check what part of the code causes the issue. The codebase is large and I couldn't find what causes the issue.

Did you have the same or similar issue? I have found some posts from previous years and then the issue was submitted as a bug to Microsoft. I have the newest version of MS Visual Studio 2022.

Developer technologies | Visual Studio | Debugging
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.