“Go To Definition” in Visual Studio only brings up the Metadata

后端 未结 26 2954
夕颜
夕颜 2020-12-07 13:33

I am working in a Web Project in Visual Studio 2008. When I hit F12 (or right-click and select Go To Definition) Visual Studio is consistently going to the Metadata file in

26条回答
  •  南笙
    南笙 (楼主)
    2020-12-07 14:10

    Symptom:

    Visual Studio 2010 Ultimate was repeatedly failing to find references to functions, #defines, includes, etc when using the "Go To Definition" or "Go To Declaration" or "Find All References" features - oddly Intellisense was working.

    Fix:

    1. Close Visual Studio
    2. Delete (rename if you want to be conservative) the solution .sdf file
    3. Reopen Visual Studio

    The .sdf file will automatically be rebuilt by parsing the include files in your solution

提交回复
热议问题