When I try to restore packages from a private feed it seems to just ignore the feed and only look for dependencies in nuget.org.
I have a nuget authenticate that provides credentials for the feeds I wish to use.
This is how my task looks like:
- task: DotNetCoreCLI@2
inputs:
command: ‘custom’
custom: ‘restore’
projects: ‘my project.csproj’
arguments: —-force -v:n
feedsToUse: ‘select’
vstsFeed: ‘myfeedurl’
includeNuGetOrg: true
In the feeds used output it only shows the NuGet org feed and what’s strange is that this only broke recently, it was restoring fine a week ago.
Any help would be appreciated.
Things I’ve tried:
- Adding the name of the artifact feed.
- Nugetcommand
- nuget config (this works but I’d like to avoid using a nuget config)
- Adding the feed to the build agent
