.NET Framework Developer Center > .NET Development Forums > MSBuild > Installing StyleCop onto MSBuild
Ask a questionAsk a question
 

AnswerInstalling StyleCop onto MSBuild

  • Tuesday, November 03, 2009 11:08 PMA n t Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi,

    I want to install styleCop onto MSBuild so that it is global to all users & I can set all rules at one central place.

    has anybody had experience in doing this?

    Many thanks for any responses
    @nt

Answers

  • Wednesday, November 04, 2009 11:08 AMMike FourieModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi

    You can check a Settings.StyleCop file into the main parent folder of your source tree, then in the StyleCop settings for the project, make sure it's set to "Merge with settings found in parent folder"

    Mike

All Replies

  • Wednesday, November 04, 2009 11:08 AMMike FourieModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi

    You can check a Settings.StyleCop file into the main parent folder of your source tree, then in the StyleCop settings for the project, make sure it's set to "Merge with settings found in parent folder"

    Mike
  • Wednesday, November 11, 2009 5:35 AMA n t Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi,

    Thanks for your answer.

    When I try check the Stylecop finle into the main project folder, I get the error "You must choose a directoty that's mapped".

    How do I get around this?

    Also, I've thus far included import statmements in the Project files for StyleCop. Do these now need to be removed?


    many thanks for your answer


    @nt