Skip to content

Disable packageSourceMapping in NuGet config #15918

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

AR-May
Copy link
Member

@AR-May AR-May commented Jun 19, 2025

Fixes MSBuild CI issues with restore: link to the failed CI run.

Error message

Unable to resolve 'Microsoft.DotNet.Arcade.Sdk (= 9.0.0-beta.25302.2)' for '.NETStandard,Version=v0.0'. PackageSourceMapping is enabled, the following source(s) were not considered: dotnet-core-internal-tooling.

Investigation:
Fixing a malformed NuGet configuration in the msbuild repository (dotnet/dotnet#550) enables the use of package source mappings for MSBuild repo, including the bits that flow to MSBuild from arcade. There is a NuGet configuration in arcade that clears the packageSources section without clearing the corresponding packageSourceMapping, leaving the feature on. Absence of the wild cards for dotnet-core-internal-tooling then causes errors in the MSBuild CI.

Changes:
This PR clears the packageSourceMapping disabling the feature for this NuGet config.

Note: Alternatively, we can add the wild card for dotnet-core-internal-tooling.

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.

1 participant