|
5 | 5 | <WorkersProps>$(EngBuildRoot)Workers.props</WorkersProps> |
6 | 6 | </PropertyGroup> |
7 | 7 |
|
8 | | - <PropertyGroup> |
9 | | - <!-- Nuget audit as warnings only, even in TreatWarningsAsErrors. --> |
10 | | - <!-- Except for in CI, critical will fail the build. --> |
11 | | - <WarningsNotAsErrors>$(WarningsNotAsErrors)NU1901;NU1902;NU1903;</WarningsNotAsErrors> |
12 | | - <WarningsNotAsErrors Condition="'$(CI)' == 'false'">$(WarningsNotAsErrors)NU1904;</WarningsNotAsErrors> |
13 | | - <WarningsAsErrors Condition="'$(CI)' == 'true'">$(WarningsAsErrors)NU1904;</WarningsAsErrors> |
14 | | - <NuGetAuditLevel>moderate</NuGetAuditLevel> <!-- warn on moderate severity only. --> |
15 | | - <NuGetAuditMode>all</NuGetAuditMode> <!-- audit transitive dependencies. --> |
16 | | - </PropertyGroup> |
17 | | - |
18 | 8 | <PropertyGroup> |
19 | 9 | <LangVersion>latest</LangVersion> |
20 | 10 | <AssemblyOriginatorKeyFile>$(EngResourceRoot)key.snk</AssemblyOriginatorKeyFile> |
21 | 11 | <CodeAnalysisRuleSet>$(RepoRoot)src.ruleset</CodeAnalysisRuleSet> |
22 | | - <NoWarn>$(NoWarn);NU1701;NU5104</NoWarn> |
| 12 | + <!-- TODO: add package source mapping and remove NU1507 suppression --> |
| 13 | + <NoWarn>$(NoWarn);NU1701;NU5104;NU1507</NoWarn> |
23 | 14 | <DebugType>embedded</DebugType> |
24 | 15 | <GenerateRuntimeConfigDevFile>true</GenerateRuntimeConfigDevFile><!-- https://github.com/dotnet/runtime/issues/54684 --> |
25 | 16 | <DisableImplicitNamespaceImports>true</DisableImplicitNamespaceImports> |
|
30 | 21 | <AdditionalFiles Include="$(RepoRoot)stylecop.json" Link="stylecop.json" /> |
31 | 22 | </ItemGroup> |
32 | 23 |
|
33 | | - <Import Project="$(MSBuildThisFileDirectory)Release.props" /> |
34 | | - |
35 | 24 | <!-- To use PlaceholderSimulation: |
36 | 25 | 1. Set env variable PlaceholderSimulation=true |
37 | 26 | 2. OR build with -p:PlaceholderSimulation=true |
38 | 27 | --> |
39 | 28 | <Import Project="$(MSBuildThisFileDirectory)PlaceholderSimulation.props" Condition="'$(PlaceholderSimulation)' == 'true'"/> |
| 29 | + <Import Project="$(MSBuildThisFileDirectory)Release.props" /> |
| 30 | + |
| 31 | + <!-- Run after Release.props, which sets the CI values--> |
| 32 | + <PropertyGroup> |
| 33 | + <!-- Nuget audit as warnings only, even in TreatWarningsAsErrors. --> |
| 34 | + <!-- Except for in CI, critical will fail the build. --> |
| 35 | + <WarningsNotAsErrors>$(WarningsNotAsErrors)NU1901;NU1902;NU1903;</WarningsNotAsErrors> |
| 36 | + <WarningsNotAsErrors Condition="'$(CI)' == 'false'">$(WarningsNotAsErrors)NU1904;</WarningsNotAsErrors> |
| 37 | + <WarningsAsErrors Condition="'$(CI)' == 'true'">$(WarningsAsErrors)NU1904;</WarningsAsErrors> |
| 38 | + <NuGetAuditLevel>moderate</NuGetAuditLevel> <!-- warn on moderate severity only. --> |
| 39 | + <NuGetAuditMode>all</NuGetAuditMode> <!-- audit transitive dependencies. --> |
| 40 | + </PropertyGroup> |
40 | 41 |
|
41 | 42 | </Project> |
0 commit comments