我目前正在开发一个项目,在该项目中我们使用 .ruleset 文件使用一组托管代码规则集,但无法找到让它在 Rider 中工作的方法——我是否遗漏了什么,或者 Rider 没有是否支持自定义代码规则集?
问问题
366 次
1 回答
1
我无法确认它是否有效,但我认为您可以.csproj
在配置中将规则集添加到文件中,如下所示:
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<OutputPath>bin\x64\Debug\</OutputPath>
<CodeAnalysisRuleSet>..\path\to\myrules.ruleset</CodeAnalysisRuleSet>
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>
于 2018-03-29T15:10:55.117 回答