是否有检查CLS遵从性的工具? [英] Is there a tool for checking CLS compliance?
问题描述
有没有一种可以分析我的.NET code(C#和 VB.NET工具),并告诉我的为什么的东西是不符合CLS?
Visual Studio是高兴地告诉我一个参数不符合CLS,但它不会让我更接近解决了这个问题,因为我不知道原因。
例如Visual Studio的错误:
参数'某某'是不符合CLS
我不能说我知道的一个工具,我倾向于使用MSDN页面的的语言独立性和语言无关的组件 的检查,如果参数/变量的类型是符合CLS。请参阅下表的部分名为类型。
也有关于这个讨论前一段时间在博客张贴的的的FxCop和CLS符合 的。
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.
这篇关于是否有检查CLS遵从性的工具?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!