Skip to content

Breaking change docs: NuGet pack warns NU5052 for non-conformant package IDs (.NET 11) - #54996

Merged
gewarren merged 4 commits into
mainfrom
copilot/fix-nuget-pack-warning-nu5052
Jul 22, 2026
Merged

Breaking change docs: NuGet pack warns NU5052 for non-conformant package IDs (.NET 11)#54996
gewarren merged 4 commits into
mainfrom
copilot/fix-nuget-pack-warning-nu5052

Conversation

Copilot AI commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Documents the new NU5052 warning emitted by dotnet pack when a package ID contains characters outside the restricted set (ASCII letters, digits, ., -, _; no consecutive separators; max 100 chars). Gated by SdkAnalysisLevel >= 11.0.100, first shipped in .NET 11 Preview 6.

Changes

  • New article docs/core/compatibility/sdk/11/nuget-pack-nu5052-packageid.md — covers previous/new behavior, reason (normalization inconsistency across runtimes/OS), and recommended actions (rename to ASCII, or suppress via <NoWarn>NU5052</NoWarn> / lower SdkAnalysisLevel)
  • toc.yml — entry added under .NET 11 SDK and MSBuild
  • 11.md — row added to the SDK and MSBuild breaking changes table

Internal previews

📄 File 🔗 Preview link
docs/core/compatibility/11.md Breaking changes in .NET 11
docs/core/compatibility/sdk/11/nuget-pack-nu5052-packageid.md NuGet pack warns for package IDs with restricted characters
docs/core/compatibility/toc.yml docs/core/compatibility/toc

Copilot AI review requested due to automatic review settings July 22, 2026 15:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because there is no eligible user to bill. To allow Copilot reviews on bot-authored pull requests, enable direct organization billing in your organization's Copilot settings.

Copilot AI changed the title [WIP] Fix NU5052 warning when using restricted characters in package ID Breaking change docs: NuGet pack warns NU5052 for non-conformant package IDs (.NET 11) Jul 22, 2026
Copilot AI requested a review from gewarren July 22, 2026 15:48
Comment thread docs/core/compatibility/sdk/11/nuget-pack-nu5052-packageid.md Outdated
Comment thread docs/core/compatibility/sdk/11/nuget-pack-nu5052-packageid.md Outdated
Comment thread docs/core/compatibility/sdk/11/nuget-pack-nu5052-packageid.md Outdated
gewarren added 2 commits July 22, 2026 09:49
Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
@gewarren
gewarren marked this pull request as ready for review July 22, 2026 17:57
@gewarren
gewarren requested a review from a team as a code owner July 22, 2026 17:57

@BillWagner BillWagner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This LGTM @gewarren

Let's :shipit:

@gewarren
gewarren merged commit a8b6807 into main Jul 22, 2026
11 checks passed
@gewarren
gewarren deleted the copilot/fix-nuget-pack-warning-nu5052 branch July 22, 2026 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Breaking change]: NuGet pack warns (NU5052) when a package ID uses characters outside the restricted set

4 participants