Rule #33
Do you Add SSW Code Auditor, NUnit and Microsoft FxCop project files to your Solution
  v5.0 Posted at 17/04/2014 6:50 PM by martinli
SSW Code Auditor, NUnit and Microsoft FxCop are tools to keep your code "healthy". That is why they should be easily accessible in every solution so that they can be run with a double click of a mouse button.

 

Code Auditor Project File

To add a SSW Code Auditor file to your solution:

  1. Start up SSW Code Auditor
  2. Add a new Job
  3. Add a the solution file to be scanned
  4. Select the rules to be run
  5. Configure email (not required)
  6. Select File > Save As (into the solution's folder as "codeauditor.SSWCodeAuditor")
  7. Open your Solution in Visual Studio
  8. Right click and add existing file
  9. Select the SSW Code Auditor project file
  10.  Right click the newly added file and select "Open With"
    Open With
  11.  Point it to the SSW Code Auditor executable

See Do you run SSW Code Auditor?
See Do you check your code by Code Auditor before check-in?
To add a Microsoft FxCop file to your solution:
  1. Stat up Microsoft FxC
  2. op
  3. Create a New Project
  4. Right click the project and Add Target
  5. Select the Assembly (DLL/EXE) for the project
  6. Select File > Save Project As (into the solution's folder as "fxcop.FxCop")
  7. Open your Solution in Visual Studio
  8. Right click and add existing file
  9. Select the Microsoft FxCop project file
  10. Right click the newly added file and select "Open With"
  11. Point it to the Microsoft FxCop executable

To add a NUnit file to your solution:
  1. Stat up NUn
  2. it
  3. Create a New Project by selecting File > New Project and save it to your solution directory as "nunit.NUnit"
  4. From the Project menu select Add Assembly
  5. Select the Assembly (DLL/EXE) for the project that contains unit tests
  6. Select File > Save Project
  7. Open your Solution in Visual Studio
  8. Right click and add existing file
  9. Select the NUnit project file
  10. Right click the newly added file and select "Open With"
  11. Point it to the NUnit executable

Now you can simply double click these project files to run the corresponding applications.

We have a program called SSW Code Auditor that implements this rule.
 


Related rules