Disable stylecop analysis for specific projects within solution

前端 未结 1 467
醉话见心
醉话见心 2021-01-04 04:27

Is there a way to easily stop StyleCop warnings from being displayed within specific projects in a solution. Or, more pointedly, a way to select which projects StyleCop anal

相关标签:
1条回答
  • 2021-01-04 04:52

    Please have a look at File Lists configuration - they allow to disable rules by default per project:

    Enabled Or Disabled By Default

    In addition, a new setting allows you to determine whether rules should be enabled or disabled by default. This can be set either at the project level or at the SourceFileList level. For example, here’s how you would set up a project with all rules disabled by default, and only two rules explicitly enabled:

    <StyleCopSettings Version="4.3">
        <GlobalSettings>
            <BooleanProperty Name="RulesEnabledByDefault">False</BooleanProperty>
        </GlobalSettings>
    
    0 讨论(0)
提交回复
热议问题