Skip to content

Commit 38696c5

Browse files
Move NuGet.config to the root + add vuln info (#3123)
Ports PRs: #2443 and #3024 to release/5.1 branch
1 parent 4acabba commit 38696c5

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
@@ -61,12 +61,18 @@
6161
<NuGetCmd>$(NuGetRoot)nuget.exe</NuGetCmd>
6262
<!-- Respect environment variable for the .NET install directory if set; otherwise, use the current default location -->
6363
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
64+
<WarningsNotAsErrors>$(WarningsNotAsErrors);NU1901;NU1902;NU1903;NU1904;NU1905</WarningsNotAsErrors>
6465
<BuildSimulator Condition="'$(BuildSimulator)' != 'true'">false</BuildSimulator>
6566
</PropertyGroup>
6667
<PropertyGroup Condition="'$(BuildSimulator)' == 'true'">
6768
<DefineConstants>$(DefineConstants);ENCLAVE_SIMULATOR</DefineConstants>
6869
</PropertyGroup>
6970

71+
<!-- Audit Settings -->
72+
<PropertyGroup>
73+
<NuGetAuditMode>all</NuGetAuditMode>
74+
</PropertyGroup>
75+
7076
<!-- Packaging for source link-->
7177
<PropertyGroup>
7278
<DebugType>portable</DebugType>

0 commit comments

Comments
 (0)