Visual Studio shows errors in external files

℡╲_俬逩灬. 提交于 2019-12-11 08:05:20

问题


This is driving me nuts for some time now. I use Resharper a lot to dig into library code. The downside to this killer feature is that my Error List gets populated with errors in the source code from those libraries.

So if my own solution fails to compile, the Error List windows first shows a pleiade of errors from those external files, only to put the actual compilation errors at the bottom. It's really annoying, because after such a fail, I always have to scroll down through that window to search what's actually the cause.

Anyone has a clue at how to get rid of this "feature"? I'm not even sure whether it's VS or Re# throwing up at me. Note: Solution-wide analysis is turned off.


回答1:


To simply remove this error (and not completely deactivate the source decompile from Resharper), go to

%LOCALAPPDATA%\JetBrains\ReSharper\v7.1\SolutionCaches\[[Your Project Name]]\Decompiler

and delete any of the problematic folders. This will retain decompile features while removing the offending files.



来源:https://stackoverflow.com/questions/13248901/visual-studio-shows-errors-in-external-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!