Run Fxcop automatically when VS 2010 Solution (With multiple projects) is build

Locked Run Fxcop automatically when VS 2010 Solution (With multiple projects) is build

  • Sunday, September 09, 2012 4:42 AM
     
     
    Can any one suggest me how to run FxCop when a solution is build rather than when any specific project from the solution (with 'N' number of projects ) is build?

    For Example :I have solution "Solution1" having 20 projects .Among these 20 projects,5 projects are main which can be set as startup as required.I do not want to run FxCop when any of  these 5 projects is run or build rather I want to run FxCop automatically when I build my solution or fire build on server.

    Thanks!

All Replies

  • Tuesday, September 11, 2012 6:03 AM
    Moderator
     
     Answered

    Hi Pooja,

    If you have the VS installed, you could use the code analysis function. It embeds the FxCop directly into the VS IDE, it run the code analysis at build time. I mean that we would enable the code analysis function for every project. For detailed information, see Code Analysis for Managed Code Overview.

    Not the TFS-Build expert, but it seems that we could analyze different solutions for code analysis with some settings in it, and maybe you could post a issue to the TFS-Build forum.

    Best Regards,


    Jack Zhai [MSFT]
    MSDN Community Support | Feedback to us