I'm trying to write some custom rules for StyleCop, and am having problems getting the code to do anything. Some details:
1. Here's the code in full:
public class UnusedCodeAnalyzer : SourceAnalyzer
public override void AnalyzeDocument(CodeDocument document)
2. The metadata is in a file called UnusedCodeAnalyzer.xml in the root folder of the project. The build action is set to Embedded Resource, copy to output directory is set to Do Not Copy. The metadata is literally exactly the example given in the SDK docs,
starting as follows:
<SourceAnalyzer Name="My Custom Rules">
Custom rules enforcing blah blah blah.
(And so on).
3. I compile in Visual C# 2010 Express, and copy only the DLL (called StyleCopUnusedCode.dll) to the StyleCop directory. Permissions are set to Everyone having Full Control.
4. I then start a new instance of VSEand open a new project which has StyleCop enabled. I rebuild the project. StyleCop produces plenty of warnings (so I know StyleCop is actually running), but none of them are MY1000.
5. The version of StyleCop being used is 22.214.171.124 (that's the version listed in the properties of StyleCop.dll).
Any suggestions would be gratefully received!
Thanks in advance,