Skip to content

Commit 1b2a45c

Browse files
committed
Added links to NuGet audit docs.
1 parent 0a9bdd1 commit 1b2a45c

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

src/Directory.Build.props

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@
7070

7171
<!-- NuGet Audit Settings -->
7272
<PropertyGroup>
73+
<!--
74+
See the NuGet Audit documentation here:
75+
76+
https://learn.microsoft.com/en-us/nuget/concepts/auditing-packages
77+
-->
78+
7379
<!--
7480
We always want NuGet auditing enabled. There are no build scenarios
7581
where auditing should be disabled.
@@ -94,6 +100,16 @@
94100
being ignored.
95101
-->
96102
<WarningsNotAsErrors></WarningsNotAsErrors>
103+
104+
<!--
105+
If a build is failing due to vulnerable dependencies, you may temporarily
106+
uncomment the following line to treat the audit warnings as non-errors.
107+
This should only be done as a temporary measure while addressing the
108+
vulnerable dependencies. See:
109+
110+
https://learn.microsoft.com/en-us/nuget/reference/errors-and-warnings/nu1901-nu1904
111+
-->
112+
<!-- <WarningsNotAsErrors>NU1901;NU1902;NU1903;NU1904</WarningsNotAsErrors> -->
97113
</PropertyGroup>
98114

99115
<!-- Packaging for source link-->

0 commit comments

Comments
 (0)