不是符合CLS的错误 [英] is not CLS-compliant error

查看:118
本文介绍了不是符合CLS的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我遇到了一个异常错误:

警告2参数类型"Microsoft.Practices.CompositeUI.WorkItem"不符合CLS

我不知道为什么会这样,因为我以前从未经历过,为什么这个解决方案会突然担心CLS遵从性.我认为我没有设置任何导致此=/
的东西
谢谢George

Hi all,

I have come across an unusual error:

Warning 2 Argument type ''Microsoft.Practices.CompositeUI.WorkItem'' is not CLS-compliant

I don''t know why this is happening as i have not experienced this before, why would this solution worry about CLS compliance suddenly. I don''t think i have set anything to cause this =/

Thanks George

推荐答案

符合CLS的代码不是绝对必要的.但是,如果要消除这种警告,首先必须知道代码有什么问题.要找出答案,使用Google".net cls-compatible",您将获得428,000个结果.由于我们不知道您的代码是什么样子,因此我们无法真正指出不符合CLS的代码,因此您需要解决它.

这是google返回的结果.

CLS-compliant code is not absolutely necessary. However, if you want to try to eliminate this waring, you first have to know what''s wrong with your code. To find that out, google ".net cls-compliant", and you''ll get 428,000 results back. Since we don''t know what your code looks like, we can''t really point out non-cls-compliant code, so it''s up to you to fix it.

Here are the results returned from google.

428,000 results[^]


这篇关于不是符合CLS的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆