문제

This is the code where I become CA1008from FxCop:

[SuppressMessage("Microsoft.Design", "CA1008:EnumsShouldHaveZeroValue", Justification = "some text..")]
public enum ECommunicationsProfil
{
   Information = 1,
   ...
}

Any ideas why SupressMessage doesnt work here?

I have Visual Studio 2012, FxCop 10 and CODE_ANALYSIS flag on project build.

도움이 되었습니까?

해결책

I have found the problem - was me ) I have used CODE_ANALYSIS for Debug but not for Release... And FcCop analysed Release build..

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top