How do I find all the non CLS-compliant statements in my .NET code?
Can Visual Studio 2015 compiler do it? How do I find non CLS-compliant warnings?
I've checked StyleCop ReSharper extension and ndepend without success.
What I am after is to find all the non CLS-compliant statements in my C# code Visual Studio project. The final goal is to add the [assembly: CLSCompliant(true)]
tag to it.
Thanks.
Using [assembly: CLSCompliant(true)]
would make the c# compiler to show warnings on not CLS-compliant code. The code for CLSCompliant warnings is usually in the CS3000
range, so you can order by code to check all of them.