-
Notifications
You must be signed in to change notification settings - Fork 496
Update NU1901-1904 #3446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update NU1901-1904 #3446
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates the NuGet documentation for NU1901 error to reflect changes in default audit mode behavior for .NET 10. The update clarifies that the default NuGetAuditMode
setting changes to all
when targeting .NET 10 framework, replacing the previous .NET 9 default behavior.
- Updates the default
NuGetAuditMode
behavior documentation for .NET 10 targeting - Revises the reversion instructions to reference .NET 9's default instead of .NET 8
- Updates the
SdkAnalysisLevel
version reference from8.0.400
to9.0.300
Learn Build status updates of commit f059159: ✅ Validation status: passed
For more details, please refer to the build report. |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Learn Build status updates of commit bf7ee86: ✅ Validation status: passed
For more details, please refer to the build report. |
…docs.microsoft.com-nuget into dev-nkolev92-updatenu1901
Learn Build status updates of commit 01844ad: ✅ Validation status: passed
For more details, please refer to the build report. |
The value can be explicitly set to `direct` to revert back to .NET 8's default. Alternatively, [the property `SdkAnalysisLevel`](/dotnet/core/project-sdk/msbuild-props#sdkanalysislevel) can be set to `8.0.400` to temporarily disable all new warnings and errors introduced in newer versions of the SDK. Specifically in this case, the default value of `NuGetAuditMode` is changed back to `direct`. | ||
For projects targeting the .NET 10 framework, the default setting for `NuGetAuditMode` is `all`. | ||
This means that NuGet will report on transitive packages with known vulnerabilities for all frameworks in the project. | ||
The value can be explicitly set to `direct` to revert back to .NET 9's default. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default for .NET 9 isn't mentioned anywhere any longer which makes this statement a bit less clear than it could be.
Fixes: NuGet/Home#14422
The new default is tied to .NET 10 tfm being one of the targeted frameworks.