“查找所有参考文献”不在 Visual Studio 2005 中工作
几个小时前我还可以“查找所有参考”,但现在它突然停止工作了。当我执行“查找所有引用”时,它总是显示“搜索找到 0 个引用”。我已经重新安装了Visual Studio,但问题仍然存在。
任何人都知道可能出了什么问题吗?
I was able to do 'Find all reference' a couple of hours ago, and now suddenly it stopped working. When I do 'Find all references', its always says 'Search found 0 references'. I have reinstalled visual studio but the problem still exists.
Anyone has any idea what might be wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
删除 Debug 或 Release 子目录中的
.ilk
、.pch
和.pdb
文件。然后构建全部
。之后它应该会重新构建并工作,尤其是在重新安装 VS 之后。Delete the
.ilk
,.pch
, and.pdb
files in the Debug or Release subdirectory. Then dobuild all
. It should reconstitute and work after that, especially after reinstalling VS.查找所有引用通常仅在加载项目后才有效。如果单独加载源文件是不行的。这也不适用于跨编译库。基本上,如果 Visual Studio 无法使用当前加载的源树解析引用,则它将无法工作。
Find all references generally only works when you have the project loaded. If you load a source file independently, it doesn't work. This also does not work across compiled libraries. Basically, if visual studio cannot resolve the reference using the source tree currently loaded, it will not work.
尝试找到“查找符号结果”窗口(Ctrl-Alt-F12),它可能漂浮在窗口之外的某个位置(我的窗口位于状态栏附近:))。
try to find the "Find Symbol Results" windows (Ctrl-Alt-F12), its probably floating somewhere out of your windows (mine was near the status bar :)).
我知道这是一个旧线程,因为我在 Windows 7 上使用 VS2017,但我也遇到了同样的问题。
我的解决方案是关闭 VS 并在解决方案文件夹结构中找到一个名为“.vs”的文件夹。注意:您可能需要关闭隐藏系统文件夹才能看到它。
删除此文件夹并重新打开 VS 和您的项目。我相信这会导致数据库重建并解决我的问题。
标记
I understand this is an old thread as I am using VS2017 on Windows 7 but the same problem occurred to me.
My solution was to close VS and locate a folder called ".vs" in your solution folder structure. Note: you may need to turn off hide system folders in order to see it.
Delete this folder and re-open VS and your project. I believe this causes a database rebuild and fixed my issue.
Mark