Skip to content

Commit 88c5ada

Browse files
authored
Add package vulnerability information (#3024)
1 parent 3fe496c commit 88c5ada

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

NuGet.config

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@
44
<clear />
55
<add key="sqlclient" value="https://sqlclientdrivers.pkgs.visualstudio.com/public/_packaging/sqlclient/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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,17 @@
6464
<NuGetCmd>$(NuGetRoot)nuget.exe</NuGetCmd>
6565
<!-- Respect environment variable for the .NET install directory if set; otherwise, use the current default location -->
6666
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
67+
<WarningsNotAsErrors>$(WarningsNotAsErrors);NU1901;NU1902;NU1903;NU1904;NU1905</WarningsNotAsErrors>
6768
<BuildSimulator Condition="'$(BuildSimulator)' != 'true'">false</BuildSimulator>
6869
</PropertyGroup>
6970
<PropertyGroup Condition="'$(BuildSimulator)' == 'true'">
7071
<DefineConstants>$(DefineConstants);ENCLAVE_SIMULATOR</DefineConstants>
7172
</PropertyGroup>
73+
74+
<!-- Audit Settings -->
75+
<PropertyGroup>
76+
<NuGetAuditMode>all</NuGetAuditMode>
77+
</PropertyGroup>
7278

7379
<!-- Packaging for source link-->
7480
<PropertyGroup>

0 commit comments

Comments
 (0)