c# - Remove stylecop msbuild integration -


i have solution 80 projects in it. each project has stylecop msbuild integration enabled:

  <import project="$(msbuildtoolspath)\microsoft.csharp.targets" />   <import project="$(programfiles)\msbuild\microsoft\stylecop\v4.4\microsoft.stylecop.targets" /> 

i need remove projects. there way short of checking out , hand-editing each , every .csproj file?

the stylecop target, defined in microsoft.stylecop.targets conditional on property stylecopenabled.

here snippet microsoft.stylecop.targets:

<!-- define target: stylecop --> <target name="stylecop" condition="'$(stylecopenabled)' != 'false'">   <message text="forcing full stylecop reanalysis." condition="'$(stylecopforcefullanalysis)' == 'true'" importance="low" />   ... snip ... 

the quick way disable stylecop pass global setting stylecopenabled. e.g. if building command line, command be: msbuild myproject.proj /p:stylecopenabled=false


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -

php - $params->set Array between square bracket -