can we conduct an Code analysis on a webapplication from CLI

Hi,

Can we perform an code analysis on a web application/project from command line interface using the FXcop. Please suggest me if I can do it or not, are there any other ways I can do other than using the GUI.

regards

Kishore



Answer this question

can we conduct an Code analysis on a webapplication from CLI

  • Coridas

    What do you mean by Web Application/Project If you mean the web site project that ships out of the box with Visual Studio 2005, then you need to first compile the web site using the aspnet_compiler.exe to generate a assembly.

    You can then pass this assembly to FxCopCmd simply by doing the following (replacing [assembly] with the assembly name):



    fxcopcmd /f:[assembly] /out:Report.xml

    Regards

    David



  • apple_pie

    Thank you David, I meant the same Website project in VS2005.
  • can we conduct an Code analysis on a webapplication from CLI