eng/build/Engineering.props (23 lines of code) (raw):
<Project>
<PropertyGroup>
<!-- Nuget audit as warnings only, even in TreatWarningsAsErrors. -->
<!-- Except for in CI, critical will fail the build. -->
<WarningsNotAsErrors>$(WarningsNotAsErrors)NU1901;NU1902;NU1903;</WarningsNotAsErrors>
<WarningsNotAsErrors Condition="'$(CI)' == 'false'">$(WarningsNotAsErrors)NU1904;</WarningsNotAsErrors>
<WarningsAsErrors Condition="'$(CI)' == 'true'">$(WarningsAsErrors)NU1904;</WarningsAsErrors>
<NuGetAuditLevel>moderate</NuGetAuditLevel> <!-- warn on moderate severity only. -->
<NuGetAuditMode>all</NuGetAuditMode> <!-- audit transitive dependencies. -->
</PropertyGroup>
<PropertyGroup>
<LangVersion>latest</LangVersion>
<AssemblyOriginatorKeyFile>$(EngResourceRoot)key.snk</AssemblyOriginatorKeyFile>
<SignAssembly>true</SignAssembly>
<DelaySign>true</DelaySign>
<CodeAnalysisRuleSet>$(RepoRoot)src.ruleset</CodeAnalysisRuleSet>
<NoWarn>$(NoWarn);NU1701;NU5104</NoWarn>
<DebugType>embedded</DebugType>
</PropertyGroup>
<ItemGroup>
<AdditionalFiles Include="$(RepoRoot)stylecop.json" Link="stylecop.json" Visible="false" />
</ItemGroup>
<Import Project="$(MSBuildThisFileDirectory)Release.props" />
<Import Project="$(MSBuildThisFileDirectory)SharedReferences.props" />
</Project>