我生成代码时编译器警告缺少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?