且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在FXCOP中为“No。”编写自定义规则。一行中的字符应小于90“

更新时间:2022-03-30 09:14:51

对于源代码样式检查,您应该查看StyleCop [ ^ ]和 StyleCop + [ ^ ]
For source code style checking you should check out StyleCop[^] and StyleCop+[^]


FxCop分析二进制文件而不是源代码,因此关于行长度的规则是无意义的。

除非编译用法最近发生了很大变化,否则评论仅在源代码中,并且从不在二进制文件中(即使技术上可能不这样做),所以答案与行长度相同。
FxCop analyses binaries and not source code, so a rules about line length is non sense.
Unless compilation usage have greatly changed lately, comments are only in source code and never in binaries (even if technically possible to do otherwise), so same answer than for line length.