我生成代码时编译器警告缺少xml注释 [英] Compiler warning for missing xml comment when i have generated code

查看:192
本文介绍了我生成代码时编译器警告缺少xml注释的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个C#/ .Net 3.5项目,其中我引用了WCF服务。当我创建引用时,VS 2008会生成一堆代码文件。问题是,这些文件没有xml注释。当我编译我的项目时,我得到了很多"公开可见类型或成员的错过XML评论....."....

I have a C# / .Net 3.5 project where i have a reference to a WCF service. When i create the reference, VS 2008 generates a bunch of code files. The problem is, that theses files doesn't have xml comments. When im compiling my project, I get a lot of "Missing XML comment for publicly visible type or member....."....

有没有办法为生成的代码隐藏这些消息?如果我忘记在自定义代码中发表XML注释,我很高兴收到警告。但是当编译器显示200个警告时很难找到我自己的一些错误......

Is there a way to hide these messages for generated code? I am very happy to get the warnings if i have forgotten to make an XML comment in my custom code. But its hard to find my own few mistakes when the compiler shows 200 warnings...

-Thanks,

Kaj

推荐答案

您好!

我现在面临同样的问题,您是否找到了解决此问题的方法?

Hi!

I'm facing the same problem now, did you find any solution for this issue?


这篇关于我生成代码时编译器警告缺少xml注释的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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