Skip to content

Use NuGetAuthenticate and a commandline task to restore packages#45

Open
merlevedeb wants to merge 1 commit intomasterfrom
feature/dotnetrestore
Open

Use NuGetAuthenticate and a commandline task to restore packages#45
merlevedeb wants to merge 1 commit intomasterfrom
feature/dotnetrestore

Conversation

@merlevedeb
Copy link
Collaborator

Use NuGetAuthenticate and a commandline task to restore packages. This fixes issues with PackageSourceMapping, where the DotNetCoreCLI@2 task requires feed- prefixes in the source mapping configuration

See
https://learn.microsoft.com/en-us/nuget/consume-packages/package-source-mapping

There is a limitation when using the DotNetCoreCLI@2 Azure Pipelines task which can be worked around by using feed- prefixes in your source mapping configuration. It is recommended however to use NuGetAuthenticate for your authentication needs and call the dotnet cli directly from a script task. See microsoft/azure-pipelines-tasks#15542.

…s fixes issues with PackageSourceMapping, where the `DotNetCoreCLI@2` task requires `feed-` prefixes in the source mapping configuration
@merlevedeb merlevedeb changed the title Use NuGetAuthenticate and a commandline task to restore packages. Thi… Use NuGetAuthenticate and a commandline task to restore packages Apr 10, 2025
@merlevedeb merlevedeb requested a review from WimVergouwe April 10, 2025 19:14
@merlevedeb merlevedeb self-assigned this Apr 10, 2025
@merlevedeb
Copy link
Collaborator Author

Pause for now and add an additional prefix 'feed-' as a workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant