ล็อกแล้ว One Code Analysis setting for the solution?

  • 01 Maret 2012 18:19
     
     
    Hi,


    I have here a solution with 10 projects. In every project is Code Analysis enabled but in 
    every project is one rule disabeld.
    How I can configure the solution / Code Analysis so that when I disable the second rule for all project
    I can do it in one place for the whole solution and not for every Project?

Semua Balasan

  • 01 Maret 2012 19:49
     
     

    In Visual Studio 2008:

    - When you configure a Check-in policy in TFS you can apply the settings there to all your projects automatically.

    In Visual Studio 2010:

    - Create a .ruleset file and configure it according to your wishes. Use the "Configure Code Analysis for your Solution" in the Analyze menu to apply this rule file to all your projects.


    My blog: blog.jessehouwing.nl

  • 01 Maret 2012 20:06
     
     

    thx!

    the Check-in policy stuff doesn't work for VS2010?

  • 01 Maret 2012 20:42
     
     Jawab
    The checkin policy works, but doesn't apply the settings to all projects. It's all different due to the ruleset files.

    My blog: blog.jessehouwing.nl