fxcop proj file RRS feed

  • Question

  • User-1467171939 posted

    I was trying to use a fxcop project file to check my code so I opened the fxcop UI and saved the fxcop project file.

    Then I copied the fxcop proj file into my directory where my solution file is present and named it Myfxapp.sln.fxcop

    Then in the external tools(VS 2008) section in the arguments I added the below line as it is

    /c /p:”$(SolutionDir)\$(SolutionFileName).fxcop” /cXsl:”C:\Program Files\Microsoft FxCop 1.36\Xml\VSConsoleOutput.xsl”

    Then when I click fxcop in the external tools I get the below error. Is there somewhere that I have to mention about the target.

    Microsoft (R) FxCop Command-Line Tool, Version 1.36 (9.0.30729.1)
    Copyright (C) 2007 Microsoft Corporation. All rights reserved.

    Loading D:\Myfxapp\\Myfxapp.sln.fxcop…
    Loaded NamingRules.dll…
    Loaded PerformanceRules.dll…
    Loaded UsageRules.dll…
    * Analysis was not performed; at least one valid rules assembly and one valid
    target file must be specified.
    * 1 total analysis engine exceptions.

    Project : error : CA0052 : No targets were selected.

    Wednesday, June 23, 2010 10:05 PM

All replies