Click here to Skip to main content
Click here to Skip to main content

Tagged as

(untagged)

Integrate FxCOP in the VS

, 5 May 2010 CPOL
Rate this:
Please Sign up or sign in to vote.
Those who don’t have VS Code analysis can integrate FxCOP in the VS.Assumes you have FxCop 1.36 installed in the default folder. If you haven’t done this yet, you can do it now as it will help in code review.Follow the steps below to set this up.In Solution Explorer, right-click on...
Those who don’t have VS Code analysis can integrate FxCOP in the VS.
 
Assumes you have FxCop 1.36 installed in the default folder. If you haven’t done this yet, you can do it now as it will help in code review.
 
Follow the steps below to set this up.
 
In Solution Explorer, right-click on your project and choose Properties
For C# projects, in the Project Properties window, select the Build Events tab
For Visual Basic projects, in the Project Properties window, select the Compile tab, and click Build Events
In the Post-build event command-line text box, enter the following (assuming you installed FxCop to the default location):
 
"%ProgramFiles%\Microsoft FxCop 1.36\FxCopCmd.exe" /file:"$(TargetPath)" /console
In Solution Explorer, right-click on your project and choose Build
Any FxCop violations will now appear as build warnings:

License

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

Share

About the Author

avtar bhatia

United States United States
No Biography provided

Comments and Discussions

 
QuestionUseful Trick PinprofessionalManoj Kr. Verma17-Jul-14 3:59 
GeneralFxCop integration with SVN PinmemberXandip14-Apr-11 21:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.1411023.1 | Last Updated 5 May 2010
Article Copyright 2010 by avtar bhatia
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid