c# - How to add a custom FxCop rule? -
Below is my custom rule assembly and embedded XML resource file. Both my assembly name and default namespace name are
MyRules I can not understand why it may be difficult to add custom Fxcop rules? I always get the error " No rules selected " I'm getting mad ...
using the system; Using System.Collections.Generic; Using System.Text; Using Microsoft.FxCop.Sdk; MyRules: {Public class} MyRule1: BaseInstructionRial {Public MyRule1 (): Base ("MyRule1", "MyRules.TutorialRules", TypeR (MyRule1). Assembly) {}}}
< Hr> & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Rules friendly name = "favorable names of my rules" & gt; & Lt; Rule type name = "MyRule1" category = "My category" check id = "SM 0001" & gt; & Lt; Name & gt; My name & lt; / Name & gt; & Lt; Details & gt; My Desciription & lt; / Description & gt; & Lt; URL & gt; Http: //www.google.com.in< / URL & gt; & Lt; Resolution & gt; My resolution & lt; / Resolution & gt; & Lt; Message Verification = "9 5" & gt; & Lt; / MessageLevel & gt; & Lt; Email & gt; & Lt; / Email & gt; & Lt; FixCategories & gt; NoBreaking & lt; / FixCategories & gt; & Lt; Owner & gt; Bill & lt; / Owner & gt; & Lt; / Rules & gt; & Lt; / Rules & gt;
The problem is resolved.
It has been found that I have an internal text of Miss MessageLevel