Changing target assemblies on .FxCop project files from Visual Studio 2003.  
Author Message
Jus386





PostPosted: Visual Studio Code Analysis and Code Metrics, Changing target assemblies on .FxCop project files from Visual Studio 2003. Top

Hello,

I have FxCop 1.35 and VS 2003, where FxCopCmd.exe is added in External tools. I'm wondering if there is some way to use FxCopCmd with my own custom filter on rules (maybe to exclude some of Naming Rules but not all section). Curently i'm passing command parameters with target assembly and directory where rules assemblies are located. Maybe using .FxCop project file passed like command line parameter is answer to this question Can Visual Studio 2003 add/remove target assemblies on pointed .FxCop file

Thanks Aleksandar




Visual Studio Team System14  
 
 
David M. Kean - MSFT





PostPosted: Visual Studio Code Analysis and Code Metrics, Changing target assemblies on .FxCop project files from Visual Studio 2003. Top

The easiest way would be to pass an FxCop project using the /project switch. For instructions on doing this, see the following post:

http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=244375&SiteID=1

If the rule selections are the same across all projects, you can pass a template project file that contains your rule selections and simply pass the assembly to analyze via the /file switch.

You could also make use of the /ruleid switch, this enables you disable individual rules. For more information type fxcopcmd.exe / at the command-line.



 
 
Jus386





PostPosted: Visual Studio Code Analysis and Code Metrics, Changing target assemblies on .FxCop project files from Visual Studio 2003. Top

Thanks a lot