Share via


Disable source code analysis for .NET

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Source analysis

You can't turn off source analysis in Visual Studio 2017. If you want to clear analyzer errors from the Error List, you can suppress all the current violations by selecting Analyze > Run Code Analysis and Suppress Active Issues on the menu bar. For more information, see Suppress violations.

Starting in Visual Studio 2019 version 16.3, you can turn off source code analysis or execute it on demand. Consider upgrading to Visual Studio 2019.

Legacy analysis

You can disable legacy, build-time analysis on the Code Analysis properties page. For more information, see How to: Enable and disable legacy code analysis.

See also