Skip to content

Commit 18b21f5

Browse files
Move NuGet.config to the roor + add vuln info (#3122)
Ports PRs: #2443 and #3024 to release/5.2 branch
1 parent b1a2461 commit 18b21f5

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/NuGet.config NuGet.config

+4
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@
44
<clear />
55
<add key="dotnet-public" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json" />
66
</packageSources>
7+
<auditSources>
8+
<clear />
9+
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
10+
</auditSources>
711
</configuration>

src/Directory.Build.props

+6
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,18 @@
6565
<NuGetCmd>$(NuGetRoot)nuget.exe</NuGetCmd>
6666
<!-- Respect environment variable for the .NET install directory if set; otherwise, use the current default location -->
6767
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
68+
<WarningsNotAsErrors>$(WarningsNotAsErrors);NU1901;NU1902;NU1903;NU1904;NU1905</WarningsNotAsErrors>
6869
<BuildSimulator Condition="'$(BuildSimulator)' != 'true'">false</BuildSimulator>
6970
</PropertyGroup>
7071
<PropertyGroup Condition="'$(BuildSimulator)' == 'true'">
7172
<DefineConstants>$(DefineConstants);ENCLAVE_SIMULATOR</DefineConstants>
7273
</PropertyGroup>
7374

75+
<!-- Audit Settings -->
76+
<PropertyGroup>
77+
<NuGetAuditMode>all</NuGetAuditMode>
78+
</PropertyGroup>
79+
7480
<!-- Packaging for source link-->
7581
<PropertyGroup>
7682
<DebugType>portable</DebugType>

0 commit comments

Comments
 (0)