Is there a tool that can analyse my .NET code (C# and VB.NET) and tell me why things are not CLS Compliant?
Visual Studio is happy to tell me a parameter is not CLS compliant, but it doesn’t get me any closer to fixing the problem as I don’t know the cause.
Example Visual Studio error:
Parameter ‘xyz’ is not CLS-Compliant
I can’t say I know of a tool, and I tend to use the MSDN page Language Independence and Language-Independent Components to check if the type of the parameter/variable is CLS compliant. See the section of the table named ‘Types’.
There was also a fair bit of discussion about this some time ago in the blog post FxCop and CLS Compliance.