Skip to content

Suppress NU1507 warning after removing package source mapping#16632

Merged
premun merged 1 commit into
mainfrom
copilot/fix-warning-suppression-error
Mar 27, 2026
Merged

Suppress NU1507 warning after removing package source mapping#16632
premun merged 1 commit into
mainfrom
copilot/fix-warning-suppression-error

Conversation

Copilot AI commented Mar 27, 2026

Copy link
Copy Markdown
Contributor

Fixes the build break introduced by #16628, which deleted the package source mapping from NuGet.config. With multiple package sources and Central Package Management enabled, NuGet emits NU1507. Since TreatWarningsAsErrors=true, this becomes a build error.

The fix suppresses NU1507 via NoWarn in Directory.Build.props, matching the approach used in dotnet/sdk, since .NET intentionally uses multiple internal feeds.

Fixes: #16628 (comment)

Agent-Logs-Url: https://github.com/dotnet/arcade/sessions/c9780af8-8993-455b-9932-3079211d459e

Co-authored-by: akoeplinger <1376924+akoeplinger@users.noreply.github.com>
@akoeplinger akoeplinger marked this pull request as ready for review March 27, 2026 07:50
@premun premun disabled auto-merge March 27, 2026 08:55
@premun premun merged commit 023200e into main Mar 27, 2026
5 of 9 checks passed
@premun premun deleted the copilot/fix-warning-suppression-error branch March 27, 2026 08:55
@ViktorHofer

Copy link
Copy Markdown
Member

@akoeplinger I think you want to revert this one now?

@akoeplinger

Copy link
Copy Markdown
Member

yup

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.

4 participants