.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month

Home >> Forum >> .NET Framework >> Post New QuestionBookmark and Share Subscribe to Forum

How to use fxcop in visual studio 2010

Posted By: sandip chavan     Posted Date: April 27, 2011    Points:5   Category :.NET Framework
Hi all,
I want to create custom rule to be invoked by fxcop can any give me Idea,aslo how to debug the rule code while analysing fxcop.

Author: Mahesh             
Posted Date: April 27, 2011     Points: 20   

hi sandeep,
please refer following url,


To debug custom rules do the following:

1. Ensure the debug symbols (.pdb) of your rule assembly is located in the same directory as the rule assembly itself
2. Open your FxCop project that contains your custom rule
3. Open your custom rules project
4. In Visual Studio, Choose Debug -> Attach To Process
5. In the Attach to Process dialog, select FxCop.exe in the Available Processes
6. Click Attach
7. In Visual Studio set a breakpoint in the rule you want to debug
8. In FxCop, click Analyze

FxCop should break on your breakpoint.

hope this may help you...

Thanks & Regards

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend