0

I'm trying to install the Fxcop ASP.NET Security rules from CodePlex as described on a MSDN Magazine article: Improving ASP.NET Security with Visual Studio 2010 Code Analysis

I'm using VS 2010 SP1 Ultimate and I can't make it load the rules to be used in the IDE. I have copy the DLL files the package contains into different folders where VS seems to be looking for the rules but I don't have the ruleset files.

Is anyone aware of a way to make it work without using FXcop externally?

Pedro Laguna
  • 465
  • 2
  • 5
  • 20
  • Yoiu mean ... You have installed FXCop successfully but the rules are not getting loaded? – Rahul May 23 '12 at 09:37
  • I mean in-build VS 2010 Ultimate SP Code Analysis tool. – Pedro Laguna May 23 '12 at 09:49
  • What does it show when you Right Click on your project -> choose properties -> in prop window select code analysis tab -> click on OPEN button. Do you see the rules listed there? If not, do you get any specific error's in VS output window? – Rahul May 23 '12 at 09:55
  • I get the default ones that come with VS, nothing more. – Pedro Laguna May 23 '12 at 10:27

1 Answers1

0

If you have a ruleset file with you (one with *.ruleset extension) then you add them directly in VS.

Right Click on your project -> choose properties -> in prop window select code analysis tab -> click on OPEN button

This will open the rules window. Select the add ruleset button as depicted in below screen

enter image description here

This will pop-up another rules window as shown below -> click on add rules button -> browse through the file location where the ruleset file is there -> select the file and click OK.

enter image description here

Rahul
  • 76,197
  • 13
  • 71
  • 125