C# How to exclude generated code from VS2008 code metrics?
问题 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