C# How to exclude generated code from VS2008 code metrics?

邮差的信 提交于 2020-02-24 09:15:23

问题


How can I exclude generated code, like Windows Forms Designer related code, from Visual Studio 2008 code metrics?

I've been digging around but I didn't found any solution. DebuggerHidden and DebuggerNonUserCode have no effect.


回答1:


Try the GeneratedCodeAttribute.



来源:https://stackoverflow.com/questions/725660/c-sharp-how-to-exclude-generated-code-from-vs2008-code-metrics

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!