VSTS Build Definition : adding multiple feeds in Nuget restore task

dparkar

I am in the process of setting up a VSTS build definition. The build definition is simple. Steps :

  1. get the source from VSTS Git repo's master branch
  2. restore nuget packages
  3. run msbuild

Step 2 is setup as following :

enter image description here

When I use "Feed(s) I select here", it only allows me to select one feed. Is this a bug ? Or the only way to use multiple feeds is through Nuget.config ?

Marina Liu

For now, it can only select one feed for Feed(s) I select here option in NuGet restore task.

And I created an issue Enable to select multiple feeds in NuGet restore task Feed(s) I select here for this feature, you can follow up.

The workarounds for now is using the NuGet.config file which contains the feeds you need to use. Or add the VSTS feeds you need to use as endpoints, and then select these feed from Credentials for feeds outside this account/collection option.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Adding paramters to VSTS Task Group

How to specify folder for build definition in VSTS

.NET Core NuGet restore fails with private NuGet feed (VSTS CI Build)

NuGet Packager Task uses wrong MSBuild in VSTS?

MSBuild 15 NuGet restore and build

Run nuget task in VSTS without proxy settings

VSTS Release Task - Push to Nuget

VSTS - Build Definition - Multiple Agents

VSTS Build Task Input Types

Nuget restore version conflict build error on VSTS

Build multiple projects/repositories with one build definition VSTS

New VSTS Nuget Task: No Option "IncludeReferencedProjects"

How to specify credentials for external nuget feeds in VSTS nuget restore

VSTS build number for build definition

VSTS Nuget restore credentials

Clone VSTS Build Definition in C#

How to use $(Rev:r) in VSTS build definition?

Multiple locations for NuGet Restore

VSTS intermittently nuget package restore fails

Adding VSTS package source to NuGet Package Explorer

Nuget package restore error in build definition

Migrating a build definition from TFS to VSTS

VSTS Build definition for Xamarin Android always fails with error " A supported task execution handler was not found. T..."

Custom Build Task for VSTS - package multiple tasks in one VSIX?

Build definition for NETCore2 WebJob in VSTS

JSON Transform Task in Build Definition in VSTS

How does Nuget Restore task work? Does nuget.config in the solution have to match that of in the build server?

The NuGet Installer task used in TFS 2017 build definition fails to clear the global-packages folder with an error

Azure Devops private build agent failing at nuget restore task