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

后端 未结 26 2953
夕颜
夕颜 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 13:56

    I figured out how to solve my problem from this post, maybe it will also work for some of you.

    I followed these steps:

    1. Close the solution.
    2. Delete the intellisense database file for the solution: .ncb
    3. Open the solution.
    4. Rebuild the solution.

    (I believe either step 3 or 4 regenerates the intellisense database file when it is missing)

    Intellisense, "go to defintion" and "find all references" should be working again.

提交回复
热议问题