Click here to Skip to main content
15,884,051 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have created some custom FxCop rules. when i am running that rules its giving following exception.
can anyone guide me regarding this?


praj
Posted
Comments
ZurdoDev 9-Apr-12 12:08pm    
Without you sharing any code or any of what you did, no one can help.

1 solution

Error loading rule is mostly occurs due to some error in rule definition file. Please make sure the following

1. Check correctness of XML tags for case sensitiveness
2. Ensure necessary attributes/xml tags are filled in for e.g. missing Resolution in rule definition in meta file will always throw this exception.
3. Same rule name is passed in constructor of rule class to "BaseIntrospectionRule" class.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900