Visual Studio “Go to definition” disabled or gray out

前端 未结 12 1313
你的背包
你的背包 2021-02-03 21:59

Visual Studio\'s Go To Definition is disabled and F12 doesn\'t work. Other commands like Alt-F12 may continue working.

12条回答
  •  不知归路
    2021-02-03 22:30

    I found that I had to remove my TFS mapping: VS 2010 > open Team Explorer > Drill into the team project > double click source control > right click on the team project in the left pane and do "Remove Mapping" > after everything was removed I manually went to the local folder and deleted any lingering files > back in source control explorer I re-mapped to the same local folder and re-pulled all the code. Now the "go to definition" works again.

    Not sure why I had to do this...

提交回复
热议问题