VS找不到“转到定义”选项

不用关闭Visual Studio软件,关闭所有已经打开文件,通过在解决方案中点击文件重新打开它们。

转载地址:http://social.msdn.microsoft.com/Forums/en-US/5562f8f3-8fee-4080-83c1-7dbba8dadd4a/go-to-definition-is-disabled-in-visual-studio?forum=csharpide


    Question

  • Question
    Sign in to vote
    0
    Sign in to vote
    In my project, I have one file that has the "Go to definition" option disabled.  I can't figure out how to get that option back, and I use that option quite heavily.  Any advice?
    Friday, June 08, 2007 7:55 PM
    Avatar of Ezek
    Ezek
    25 Points

Answers

  • Question
    Sign in to vote
    3
    Sign in to vote

    Don't close Visual Studio but close all the files and open them again by clicking on the file in the solution. The file might have been opened by Source Safe or you maybe opened it from Windows Explorer. In this case the file doesn't get assosiated with your solution and the Go to Def. doesn't work.


你可能感兴趣的:(VS找不到“转到定义”选项)