CA0052 : No targets were selected


CA0052 : No targets were selected

When we are going to integrate FxCop with our Visual Studio then we getting very frequently above said error.

Cause: FxCop not configured correctly

Resolution: follow the below steps-

 

1- Go to Tools -> External Tools

2- Click “Add” and fill in the following details

Title: FxCop
Command: C:\Program Files\Microsoft FxCop 1.35\FxCopCmd.exe
Arguments:  /c /f:”$(TargetPath)” /r:”C:\Program Files\Microsoft FxCop 1.35\Rules” /consolexsl:”C:\Program Files\Microsoft FxCop 1.35\Xml\VSConsoleOutput.xsl”
Initial Directory: C:\Program Files\Microsoft FxCop 1.35
Check the “Use Output window” checkbox

If you are rushing with any other issue then feel free to contact me ahamad.parwej@gmail.com

 

Advertisements
Tagged with: , ,
Posted in .Net, Asp.Net, C#, FxCop, vb.net

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Top Rated

Error: Twitter did not respond. Please wait a few minutes and refresh this page.

Blog Stats
  • 29,596 hits
%d bloggers like this: