Are there any performance costs if static code analysis is included in the assembly (release)?
Our CI server starts code analysis based on the debugging of our C # projects, while static code analysis is disabled in the release build (i.e., CODE_ANALYSIS is undefined). If there is no reason to disable code analysis on assemblies, then I spend time assembling debugging.
The reflector shows that attributes are SuppressMessageexcluded if code analysis is disabled, but I do not expect the additional attribute to affect runtime performance. Is this the only effect that allows static code analysis (in Visual Studio 2013)?
source
share