Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get resharper to skip generated files

Tags:

resharper

Resharper really complains about files such as reference.cs that is generated by things like WCF service reference. How do I get Resharper to skip such files entirely?

like image 948
Ralph Shillington Avatar asked Mar 07 '11 11:03

Ralph Shillington


People also ask

How make ReSharper faster?

To configure solution-wide analysis, go to ReSharper | Options | Code Inspection | Settings. In Visual Studio options, go to Source Control | Plug-in Selection: select None for the source control plugin. This will turn off Git or another VCS provider and improve overall performance.

Does ReSharper Support VS 2022?

ReSharper 2021.3 release supports Visual Studio 2022 out-of-the-box.

Why is ReSharper not working?

If ReSharper stopped working for a single specific solution (like, there is no Code Analysis, Navigation, Code Inspections, etc.), but works fine for the others, this might indicate that solution specific settings, as well as ReSharper caches are corrupted, and VS with ReSharper cannot rebuild them automatically for ...


2 Answers

  1. menu ReSharper -> Options
  2. Code inspection -> Settings item
  3. button Edit items to skip
like image 183
Snowbear Avatar answered Feb 12 '23 21:02

Snowbear


I got this to work by entering Referen?e.cs into the ReSharper Generated file masks list. Apparently the presence of the ? wildcard tricked it into applying to all Reference.cs files (well, remember that it will get files named Referente.cs too, but I can live with that.

like image 27
Kit Avatar answered Feb 12 '23 20:02

Kit