Copyright 2008-2009, Paul Jackson, all rights reserved
The path to Visual Studio depends on where you installed it, but should be something like: C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe
And set the Command Line Arguments to the solution file you plan to use for testing your rules -- in my case: "C:\vs\SourceAnalyzerSample\ClassLibrary3\ClassLibrary3.sln"
Finally set the project's Post Build Event to copy the DLLs and PDBs for your custom rule to the Source Analyzer install directory:
xcopy "$(TargetDir)SourceAnalyzerSample*.*" "C:\Program Files\Microsoft Source Analysis Tool for C#" /y
You could set your project's target directory to build directly into the Source Analyzer install directory, but I prefer to have it as a separate step.