Base type is not CLS-compliant, what reasons of this warning?

Viewed 29854

I have got warning from subject on one of my classes. Actually class is very simple, just an inheritor of my generic base type. Also I have some other inheritors from that generic class across the solution, and there are no such warnings.

What could be the reason(s) of this? Compiler does not give any clues of why base type is not CLS-compliant

4 Answers

We are using MsBuildTasks and one thing we notices is that in the Common.targets file, CLSCompliant was set to true. This was setting that value in each of the AssemblyInfo files.

put <AssemblyClsCompliant>false</AssemblyClsCompliant> in your .csproj file of your base project and the project who refer to it.

Related