Skip to content

Commit e1e282d

Browse files
authored
Fix NU1901 critical severity typo (#3200)
1 parent 7a5311d commit e1e282d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/reference/errors-and-warnings/NU1901-NU1904.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ Upgrading to a newer version of the package is likely to resolve the warning.
3939
You can check the URL provided by the vulnerability advisory to see what versions of the package have been fixed, or check your configured package source(s) to see what versions of the package are available.
4040
Visual Studio's package manager UI can show which package versions are affected and which do not have known vulnerabilities.
4141

42-
If you do not wish to be notified of vulnerabilities that are less severe than a level you are comfortable with, you can edit the project file and add an MSBuild property `NuGetAuditLevel`, with value set to `low`, `moderate`, `high`, or `severe`.
42+
If you do not wish to be notified of vulnerabilities that are less severe than a level you are comfortable with, you can edit the project file and add an MSBuild property `NuGetAuditLevel`, with value set to `low`, `moderate`, `high`, or `critical`.
4343
For example, `<NuGetAuditLevel>high</NuGetAuditLevel>`.
4444

4545
If these warnings are causing restore to fail because you are using `TreatWarningsAsErrors`, you can add `<WarningsNotAsErrors>NU1901;NU1902;NU1903;NU1904</WarningsNotAsErrors>` to allow these codes to remain as warnings.
4646

4747
If you do not want NuGet to check for packages with known vulnerabilities during restore, add `<NuGetAudit>false</NuGetAudit>` inside a `<PropertyGroup>` in your project file, or a [`Directory.Build.props` file](/visualstudio/msbuild/customize-by-directory).
4848

4949
> [!NOTE]
50-
> The initial release of NuGetAudit [does not provide a way to suppress specific advisories (URLs)](https://github.com/NuGet/Home/blob/dev/proposed/2022/vulnerabilities-in-restore.md#excluding-advisories).
50+
> The initial release of NuGetAudit [does not provide a way to suppress specific advisories (URLs)](https://github.com/NuGet/Home/issues/11926).
5151
> It is a feature we intend on adding based on prioritization of other improvements.
5252
>
5353
> As a mitigation, you can add an appropriate `NoWarn` to your `PackageReference` declarations.

0 commit comments

Comments
 (0)