Resharper 7.1 Solution Analysis False Errors

和自甴很熟 提交于 2019-12-30 02:47:17

问题


In our VS2012 web project we are getting hundreds of errors reported by Resharper, but the software builds and compiles fine.

How do I get resharper to correctly identify the fact that the solution is actually fine.

All the errors are about properties on classes are not found.

I have tried cleaning the solution and forcing Resharper to re-analyze.


回答1:


Resharper gets confused for many reasons, but some of the times I had issues the solutions I did were:

  • like this case

  • disable Resharper for a set of files: Resharper => Options => Code Inspection =>Settings => Edit Items to Skip

  • sometimes is just a bug, make sure is not reported already. Look for example on this forum thread




回答2:


Go to Tools -> Options -> ReSharper -> Options -> General and click Clear Caches. Click Cancel and then in the ReSharper options window click Suspend Now and after that click Resume button.

This way you'll clear the corrupt cache and restart the ReSharper.




回答3:


for me, the problem is fixed by right clicking on the project, 'Unload Project' and reload thereafter.




回答4:


For me, inspecting the solution gave me hundreds of errors, including many "cannot find file in search paths". I tried every suggestion out there to fix it and none of them worked. I ended up finding out inspecting the project, instead of the solution, worked perfectly.



来源:https://stackoverflow.com/questions/18905840/resharper-7-1-solution-analysis-false-errors

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