visual-studio-2013 - 我的 Visual Studio 2013 有什么问题

标签 visual-studio-2013 intellisense error-list

所以我的 VS 2013 有问题。一切都是最新的,IDE 和操作系统 (WIN 7)。根据我的研究,有几个人说要从我的解决方案中删除 *.sdf 文件,我没有这样的文件。还建议“转到:编辑 -> IntelliSense -> 刷新本地缓存”,该选项不适合我。

我可以编译和运行,一切正常,按预期工作。如果我在下次编译时进行了一次更改——而且是每次——它都会出现假错误,有时会出现数百个错误。

通常我所要做的就是清理并重建项目或整个解决方案。但有时这甚至不起作用,我必须关闭 VS 并重新启动它,然后当我再次编译它时错误都消失了。

所以它并没有妨碍我完成我的工作,但它非常烦人。 所以问题是有人知道我需要做什么或需要调整哪些设置来解决这个问题吗?我在更新 Windows 并最终卸载并重新安装 VS 2013 后遇到了一些问题. 那也是几个月前的事了。当前的错误问题并没有在重新安装后出现,它只是在最近几周才开始发生,并且不断变得越来越普遍。我的操作系统、VS 或任何其他可能导致此问题的设置都没有发生任何变化。

Here is a small snip of my errors (there are over a hundred just like this)

类似的错误有一百多个,都是假错误! Another screen shot to help show the issue(s)

编辑:添加了另一个可能有助于显示我的问题的屏幕截图。

编辑 2:我还想提一下,这不仅仅是智能感知搞砸了。在清理/重建或重新启动 VS 之前,代码不会构建,我也无法运行项目。

最佳答案

我确信必须有一些更好的方法来解决这个问题,或者首先解释如何防止这种情况发生,但这是我设法解决这个问题的方法。

我删除了下面列出的所有目录的内容。我只是手动删除了它们,但这可能会被设置为一个批处理,使这个过程毫不费力。但我现在不打算为此烦恼。

C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files
C:\Users\<your-user-name>\Documents\Visual Studio 2013\Backup Files
C:\Users\<your-user-name>\Documents\Visual Studio 2012\Backup Files
C:\Users\<your-user-name>\Documents\Visual Studio 2010\Backup Files
C:\Users\<your-user-name>\AppData\Local\assembly\dl3
C:\Users\<your-user-name>\AppData\Local\Microsoft\VisualStudio\12.0\ProjectAssemblies
C:\Users\<your-user-name>\AppData\Local\Microsoft\VisualStudio\11.0\ProjectAssemblies
C:\Users\<your-user-name>\AppData\Local\Microsoft\VisualStudio\10.0\ProjectAssemblies

猜测一下,我认为 Visual Studio 应该删除部分(如果不是全部)这些文件。也许在某些情况下调试器崩溃,或者 VS 本身和一些文件被遗忘,这可能是导致智能感知/编译器错误的原因。只是一个猜测,我希望我知道为什么会发生这种情况。

如果有人知道更好的解决方法,或者更好的方法来首先防止问题发生,请赐教!

EDIT: This is just a temp fix, and probably not a very good one at that. It works for a while but eventually it starts happening again. I'll be making a batch file to clear the aforementioned directories so at least I can just have a one click fix. I just really wish I knew what the root cause of this was and how to prevent it in the first place. --03/17/2015

关于visual-studio-2013 - 我的 Visual Studio 2013 有什么问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28861463/

相关文章:

Android .axml 智能感知不适用于支持库控件

visual-studio-2015 - Visual Studio 2015 错误列表仅显示打开文件的错误

visual-studio - Visual Studio 2013 预览版和 Windows Azure 项目兼容性

c# - 为什么 Visual Studio 在 Release 构建过程中会在/bin/debug/中寻找未解析的项目引用?

visual-studio-2015 - 我可以在 Visual Studio 2012/2013/2015/2017/2019 中录制/播放宏吗?

c++ - 在 Visual Studio 2013 上的 C++ 中使用 pthread

resharper - 为什么 IntelliSense 不断将函数更改为函数?

wpf - Intellisense 在哪里寻找 XAML 编辑中 Brush 属性的选项?

asp.net - 如何防止错误列表窗口显示在 Visual Studio ASP.NET 编辑器中?

.net - 如何在Visual Studio中自动更新ErrorList?