Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable fxcop

I have a project created in visual studios 2010 pro, now opening it ultimate I am getting 100s of errors i belive because of fx cop.

How do I just simply turn it off.

I have right clicked and gone to code analysis, what setting do I have my website on?

EDIT:

the reason i need to turn it off because i get this main error:

Error   1   CA0060 : The indirectly-referenced assembly 'Newtonsoft.Json, Version=4.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' could not be found. This assembly is not required for analysis, however, analysis results could be incomplete. This assembly was referenced by: C:\CMS\packages\DataTablePager\DataTablePager.dll.     Application

enter image description here

like image 593
Beginner Avatar asked Dec 27 '22 22:12

Beginner


1 Answers

Right click on your project node in Solution Explorer, choose Properties.

There is a Code Analysis tab near the bottom. Click that and uncheck "Enable Code Analysis on Build".

Alternatively, you could right click on that error, and choose "Suppress". This will allow you to suppress that error from being generated.

like image 103
Kyle Trauberman Avatar answered Feb 23 '23 16:02

Kyle Trauberman