【问题标题】:Support for Managed Code Rule Sets in RiderRider 中对托管代码规则集的支持
【发布时间】:2017-10-03 06:57:04
【问题描述】:

我目前正在开展一个项目,在该项目中,我们使用 .ruleset 文件使用一组托管代码规则集,但无法找到使其在 Rider 中工作的方法 - 我是否遗漏了什么,或者Rider 不支持自定义代码规则集吗?

【问题讨论】:

    标签: c# rider


    【解决方案1】:

    我无法确认它是否有效,但我认为您可以在配置中将规则集添加到您的 .csproj 文件中,如下所示:

    <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
      <OutputPath>bin\x64\Debug\</OutputPath>
      <CodeAnalysisRuleSet>..\path\to\myrules.ruleset</CodeAnalysisRuleSet>
      <PlatformTarget>x64</PlatformTarget>
    </PropertyGroup>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2010-09-06
      • 1970-01-01
      • 2015-03-05
      • 2011-01-29
      • 1970-01-01
      • 1970-01-01
      • 2012-09-23
      相关资源
      最近更新 更多