Alex Rivera | Logout

"Go To Definition" in Visual Studio only brings up the Metadata

Asked 2009-05-07T21:02:41.273
165

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 instead of going to the source.

Some Points:

  • All the source code is C#, there is no VB.Net
  • All the projects are in the same solution
  • Everything is a project reference as opposed to a file reference (checked and double-checked)
  • I have tried the Clean/Rebuild Solution approach (even to the point of clearing out the Temp directory, Temporary ASP.NET Files directory, etc).

Has anyone else seen this behavior and/or know how to fix it?

Edit
Report

1 Answer

1

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

answered 2012-01-24T21:51:50.093

Your Answer