2

I have Windows XP and Visual Studio 2010 installed.

Intended to use FxCop to check if the solution corresponds to the Microsoft Code Guides.

Now found out that FxCop is part of "Microsoft Windows SDK for Windows 7 and .NET Framework 4"

Should I install this thing, even if I have Windows XP?

serhio
  • 28,010
  • 62
  • 221
  • 374

3 Answers3

2

FxCop 10 can be run on WindowsXP (I have installed it on my XP box at work.) Having said that, I agree with Anuraj's comment - if you are using a version of VisualStudio 2010 that includes code analysis, using that is an easy place to start. With a few exceptions, both VS and FxCop use the same rule set, so knowing one will help with the other.

Pedro
  • 12,032
  • 4
  • 32
  • 45
  • Pedro. your answer is in contradiction with the GWLlosa one... I don't understand anymore what is the latest version XP compatible... – serhio Apr 13 '11 at 08:15
  • As Andrew Brown points out in his comment, the Windows 7 SDK can be installed on XP. FxCop 10 is part of that SDK and will install and run on Windows XP. – Pedro Apr 13 '11 at 17:29
1

I think you can use Static code analysis enabled instead of FxCop. It include FxCop and more. More information can be get from this SO link

Visual Studio Code Analysis vs StyleCop + FxCop

Community
  • 1
  • 1
Anuraj
  • 18,859
  • 7
  • 53
  • 79
  • thanks. However I don't know even FxCop, so I prefer do not have even "more". – serhio Apr 11 '11 at 15:23
  • I think Static code analysis is better option, because you will get the errors when ever you compile the application, if it is enabled ;) – Anuraj Apr 11 '11 at 15:28
0

FxCop 1.36 is the last version that officially supports Windows XP. Essentially, it is part of the SDK. The SDK in question ( WinSDK 7.0 (Windows SDK for Windows 7 and .Net Framework 3.5 SP1)) can be downloaded here.

GWLlosa
  • 23,995
  • 17
  • 79
  • 116
  • thanks, but you should read the question more attentively. I require nothing but having latest version of FxCop under **WindowsXP**. – serhio Apr 11 '11 at 15:22
  • So, even if the download it "for Windows 7" I can install it on Windows XP? – serhio Apr 11 '11 at 15:29
  • 3
    Yes. The [system requirements](http://www.microsoft.com/downloads/en/details.aspx?FamilyID=c17ba869-9671-4330-a63e-1fd44e0e2505&displaylang=en#SystemRequirements) clearly state that Windows XP is a supported operating system. It's titled "Windows 7 SDK" because this release of the SDK supports _targeting_ Windows 7. But it continues to support targeting downlevel operating systems, and you can develop your code using the SDK from any of the operating systems listed in the system requirements, as well. – Andrew Brown Apr 11 '11 at 16:34