Skip to content

Commit 265aee3

Browse files
authored
Fix incorrect NuGet Audit Mode default documentation for .NET 9 (#46851)
1 parent 2867c6c commit 265aee3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/core/tools/dotnet-restore.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,6 @@ To retrieve the known vulnerability dataset, ensure that you have the NuGet.org
218218

219219
You can configure the level at which auditing will fail by setting the `<NuGetAuditLevel>` MSBuild property. Possible values are `low`, `moderate`, `high`, and `critical`. For example if you only want to see moderate, high, and critical advisories, you can set the property to `moderate`.
220220

221-
Starting in .NET 9, NuGet audits both *direct* and *transitive* package references, by default. In .NET 8, only *direct* package references are audited. You can change the mode by setting the `<NuGetAuditMode>` MSBuild property to `direct` or `all`.
221+
In .NET 8 and .NET 9, only *direct* package references are audited by default. Starting in .NET 10, NuGet audits both *direct* and *transitive* package references by default. You can change the mode by setting the `<NuGetAuditMode>` MSBuild property to `direct` or `all`.
222222

223223
For more information, see [Auditing package dependencies for security vulnerabilities](/nuget/concepts/auditing-packages).

0 commit comments

Comments
 (0)