How to exclude folders from C ++ of the basic rules for checking control paths?

My problem is that Nuget packages (inside the solutions / packages folder) cause a lot of warnings, and it takes a long time to parse them.

I tried to exclude folders from static analysis without success. I have an understanding that this will be achieved using the CAExcludePath environment variable. But where should I set the CAExcludePath environment variable? I already tried installing it through the project-> debugger-> environment field.

+6
source share
1 answer

This variable is available in C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Microsoft\VisualStudio\v15.0\CodeAnalysis\Microsoft.CodeAnalysis.Targets , and its value can be seen by increasing the volume of output ( Tools->Options->Projects and Solutions->Build and Run -> MSBuild project build output verbosity to 'Diagnostic' ). However setting the variable did not help me with the problem. Edit: I am using MSVS Professional 2017, version 15.2 (26430.15)

+1
source

All Articles