I am trying to get latest version of FxCop. I am using Visual Studio 2010 Professional edition which does not include code analysis, so I am trying to set it up using FxCop.
FxCop Installation Instructions
Download the Microsoft Windows SDK for Windows 7 and .NET Framework 4 version 7.1.
Run %ProgramFiles%\Microsoft SDKs\Windows\v7.1\Bin\FXCop\FxCopSetup.exe to install FxCop.
but I found it in
C:\Program Files\Microsoft SDKs\Windows\v6.0A\FXCop
Since FxCop 10.0 is distributed as part of Windows 7 SDK, you have to do some download and extractions to install it on servers which are not running Windows 7.
Any idea where can I find it? Is FxCop supported by Microsoft any more?
You can download the file directly from here: https://fxcopinstaller.codeplex.com/
This project is not created by Microsoft. I made it just for saving you and other people a few steps of extracting the binary from the original package. I did not change anything in the original MSI file provided by Microsoft. I also don't accept any contributor's upload to keep the file genuine.
[UPDATE]
Codeplex is shutting down. New location is www.fxcopinstaller.com.
I have the folder C:\Program Files\Microsoft SDKs\Windows\v7.0A\FXCop
in my SDK install, however it is for the older version of FxCop. I also have the setup for the latest version of FxCop, but I can't remember where I found it, and its just as easy for you to download it from that other question.
However these days I follow the instructions detailed on this blog post because the FxCop command line runner produces different results than the IDE Code Analysis runner (namely because FxCop doesn't support the new phoenix engine), and I wanted my build server to enforce the same rules as were run in the IDE.
This procedure also gave me the ability to relax the rules for my unit test projects (there is an issue in VS2010 whereby the ruleset configured for the first project built became the ruleset for all projects, regardless of what was configured).
UPDATE
If required, this Code Analysis Team blog post says that the FxCop 10.0 setup is included in Microsoft Windows SDK for Windows 7 and .NET Framework 4 Version 7.1 and can be found in the folder %ProgramFiles%\Microsoft SDKs\Windows\v7.1\Bin\FXCop.