如何通过组合现有规则来创建 FxCop(代码分析)自定义规则集
请让我知道,如何通过组合现有规则来开发 FxCop(代码分析)自定义规则程序集,例如自定义规则程序集将包含“Microsoft 基本正确性规则”和“Microsoft 安全规则”中的规则(
如果您可以提供参考链接)或代码示例,那就太好了。
谢谢拉桑莎
Please let me know , how can I develop a FxCop (Code Analysis) custom rules assembly by combining existing rules such as that custom rules assembly will include rules from "Microsoft Basic Correctness Rules" and "Microsoft Security Rules"
If you can provide reference link or code sample, that would be great.
Thanks
Lasantha
“Microsoft 基本正确性规则”和“Microsoft 安全规则”是规则集,而不是规则集。这些规则集中的每一个实际上都包含来自多个程序集的规则。如果您的目的是创建一个结合两者的自定义规则集,则可以非常轻松地完成:
"Microsoft Basic Correctness Rules" and "Microsoft Security Rules" are rule sets, not rule assemblies. Each of these rule sets actually includes rules from more than one assembly. If your intent is to create a custom rules set that combines the two, this can be done quite easily: