Skip to content

Delete package source mapping from NuGet.config#16628

Merged
mmitche merged 1 commit intomainfrom
mmitche-patch-2
Mar 26, 2026
Merged

Delete package source mapping from NuGet.config#16628
mmitche merged 1 commit intomainfrom
mmitche-patch-2

Conversation

@mmitche
Copy link
Copy Markdown
Member

@mmitche mmitche commented Mar 26, 2026

Removed package source mapping configuration..

This is incompatible with some darc tool installs where add-source is needed.

May instroduce later if darc-install.ps1 is changed.

To double check:

Removed package source mapping configuration..

This is incompatible with some darc tool installs where add-source is needed.

May instroduce later if darc-install.ps1 is changed.
@mmitche mmitche disabled auto-merge March 26, 2026 20:30
@mmitche mmitche merged commit 631897b into main Mar 26, 2026
1 of 3 checks passed
@mmitche mmitche deleted the mmitche-patch-2 branch March 26, 2026 20:33
@akoeplinger
Copy link
Copy Markdown
Member

akoeplinger commented Mar 27, 2026

This broke the build but we didn't see it here because of the Azure Pipelines outage:

src/Microsoft.DotNet.Helix/Client/CSharp/Microsoft.DotNet.Helix.Client.csproj(0,0): error NU1507: (NETCORE_ENGINEERING_TELEMETRY=Restore) Warning As Error: There are 11 package sources defined in your configuration. When using central package management, please map your package sources with package source mapping (https://aka.ms/nuget-package-source-mapping) or specify a single package source. The following sources are defined: dotnet-public, dotnet-tools, dotnet-eng, dotnet-libraries, dotnet-libraries-transport, dotnet9, dotnet9-transport, dotnet10, dotnet10-transport, dotnet11, dotnet11-transport

@ViktorHofer
Copy link
Copy Markdown
Member

ViktorHofer commented Mar 28, 2026

FYI @richlander as you introduced it via 6198c7a

@premun
Copy link
Copy Markdown
Member

premun commented Mar 30, 2026

@akoeplinger
Copy link
Copy Markdown
Member

It's a new error that got added by dotnet/sdk#52863

@Youssef1313
Copy link
Copy Markdown
Member

Hitting this in testfx as well:

'D:\a\_work\1\s\.dotnet\dotnet.exe' tool install microsoft.dotnet.darc --version 1.1.0-beta.26176.1 --add-source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json' -v minimal --tool-path 'D:\a\_work\1\s\artifacts\tmp\Debug\darc\341ee5f1-081b-4271-9c7e-7f25ab9b385f'
The --add-source option cannot be combined with package source mapping. To use an additional source, update your NuGet configuration file's source mapping settings. Learn more: https://aka.ms/nuget-package-source-mapping
The term 'D:\a\_work\1\s\artifacts\tmp\Debug\darc\341ee5f1-081b-4271-9c7e-7f25ab9b385f\darc.exe' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
##[error](NETCORE_ENGINEERING_TELEMETRY=PromoteBuild) There was an error while trying to publish build '308334' to default channels.

We will try to see if we can delete PSM as a workaround.

@premun
Copy link
Copy Markdown
Member

premun commented Mar 30, 2026

We will switch over to --source instead of --add-source which should fix this. In the meanwhile, you can revert the .NET SDK bump in your global.json

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.

6 participants