转到定义:"不能导航到该符号的尖号下方"。 [英] Go To Definition: "Cannot navigate to the symbol under the caret."

查看:4473
本文介绍了转到定义:"不能导航到该符号的尖号下方"。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我突然开始经历在我的项目今天的一个问题,即点击转到定义给了我一个奇怪的错误:无法导航到尖号下的符号

I suddenly started experiencing a problem today in my project where clicking Go To Definition gives me a strange error: "Cannot navigate to the symbol under the caret."

我首先注意到它一段时间后,安装 Costura.Fody通过的NuGet 。因为我已经卸载它,但问题仍然存在。我已经清洗并多次重修解决方案。有没有Fody或Costura随时随地在我的git的承诺的历史,之前或当这开始发生的时间点后的情况,所以我在想,我的.gitignore'd文件中的一个是停留在一个糟糕。状态

I first noticed it some time after installing Costura.Fody via NuGet. I've since uninstalled it but the problem persists. I've cleaned and rebuilt the solution multiple times. There are no instances of "Fody" or "Costura" anywhere in my git commit history, before or after the point in time when this started happening, so I'm thinking that one of my .gitignore'd files is stuck in a bad state.

该问题只发生如果所针对的定义是在另一个文件;转到定义的东西在当前打开的文件工作正常。皮克定义工作正常了。其他的解决方案/项目,做工精细,以及 - 这是只有这一个是造成问题。

The problem only occurs if the definition being targeted is in another file; Go To Definition for something in the currently opened file works fine. Peek Definition works fine too. Other solutions/projects work fine as well -- it's only this one that's causing issues.

我在使用Visual Studio 2015年似乎是问题不会发生2013年的版本。

I'm using Visual Studio 2015. The issue doesn't seem to occur in the 2013 version.

为什么会出现这种错误发生,我怎么能解决这个问题?

Why does this error occur and how can I fix it?

推荐答案

在过去几天我已经收到此错误,至少每天两次..真的很烦人!这里提出的解决方案,
都没有为我工作。我发现了,因为这是非常难以找到,我把它写下来这里是:

The last couple of days I've been getting this error, at least twice a day.. really annoying! None of the solutions proposed here has worked for me. What I found, and since it was pretty difficult to find I'm writing it down here, was to:


  • 关闭Visual

  • 开启控制台并导航到Visual安装文件夹,在我的电脑是C:\Program文件(x86)\Microsoft的Visual Studio 14.0\Common7\IDE

  • 运行devenv.exe的/ resetuserdata

  • 打开Visual Studio,这将需要一些时间来加载。

  • Close Visual
  • Open Console and navigate to Visual installation folder, in my computer is C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE
  • run devenv.exe /resetuserdata
  • Open Visual Studio, it's going to take some time to load.

免责声明:我使用Xamarin

Disclaimer: I'm using Xamarin

这篇关于转到定义:"不能导航到该符号的尖号下方"。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆