Make code analyzers ignore AssemblyInfo.cs

We have added #pragma warning disableto the top of all our files AssemblyInfo.cs. However, the built-in code analysis in Visual Studio 2015 Professional continues to analyze this file. What can we add to prevent this?

+4
source share
1 answer

#pragma applies to compiler warnings, since code analysis (binary) is applied to produced assemblies, and pragma information was lost during the compilation stage, binary code analysis cannot know about this suppression.

#pragma , . " ", . , , .

+2

Source: https://habr.com/ru/post/1656154/


All Articles