Rah*_*put 5 cruisecontrol.net nant stylecop
我想从stylecop检查中排除/Properties/AssemblyInfo.cs.我们可以这样做吗?问题是我已经将stylecop与nant集成在一起.我没有标记产品版本,因此大会信息中的信息会发生变化,并在非电子邮件中发出警告.我正在使用stylecopcmd进行整合.
有几种方法可以做到这一点.推荐的方法是使用文件列表.这是一个例子:
<StyleCopSettings Version="4.3">
<SourceFileList>
<SourceFile>AssemblyInfo.cs</SourceFile>
<Settings>
<GlobalSettings>
<BooleanProperty Name="RulesEnabledByDefault">False</BooleanProperty>
</GlobalSettings>
</Settings>
</SourceFileList>
</StyleCopSettings>
Run Code Online (Sandbox Code Playgroud)
另外,您可以使用ExcludeFromStyleCop在项目文件设置为记录在这里:
<Compile Include="AssemblyInfo.cs">
<ExcludeFromStyleCop>true</ExcludeFromStyleCop>
</Compile>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2064 次 |
| 最近记录: |