Skip to content

Fix incorrect NuGet Audit Mode default documentation for .NET 9 #46851

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

Merged
merged 3 commits into from
Jun 18, 2025

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Jun 18, 2025

The documentation incorrectly stated that .NET 9 audits both direct and transitive package references by default. This was inaccurate based on the actual behavior implemented in the .NET 9.0.101 SDK.

What was wrong:

  • Documentation claimed ".NET 9 audits both direct and transitive package references, by default"
  • This behavior was only temporarily present in .NET 9 preview 6 and was reverted

What this PR fixes:

  • Corrects the statement to reflect that .NET 8 and .NET 9 only audit direct packages by default
  • Adds clarification that the transitive auditing behavior will be implemented in .NET 10
  • Includes a note explaining the temporary change and reversion that occurred in .NET 9 preview 6 and .NET 9.0.101 SDK
  • References the breaking change documentation for .NET 10 where this behavior will actually be implemented

The fix ensures users have accurate information about NuGet audit behavior across different .NET versions.

Fixes #46679.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.


Internal previews

📄 File 🔗 Preview link
docs/core/tools/dotnet-restore.md dotnet restore

@Copilot Copilot AI changed the title [WIP] Incorrect NuGet Audit Mode default for .NET 9 Fix incorrect NuGet Audit Mode default documentation for .NET 9 Jun 18, 2025
@Copilot Copilot AI requested a review from gewarren June 18, 2025 12:25
Copilot finished work on behalf of gewarren June 18, 2025 12:25
@gewarren gewarren marked this pull request as ready for review June 18, 2025 12:30
@gewarren gewarren requested review from tdykstra and a team as code owners June 18, 2025 12:30
@gewarren gewarren enabled auto-merge (squash) June 18, 2025 12:31
Copy link
Member

@BillWagner BillWagner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM. Let's :shipit:

@gewarren gewarren merged commit 265aee3 into main Jun 18, 2025
10 checks passed
@gewarren gewarren deleted the copilot/fix-46679 branch June 18, 2025 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect NuGet Audit Mode default for .NET 9
3 participants