Calum
Calum

Reputation: 1889

Deploy a NuGet package to folder location during a VSTS release

I used to use Octopus Deploy and I had steps in my deployment processes where the contents of a NuGet package were deployed to a specific folder on the deployment target. I'm currently using VSTS and I'm looking for a way to deploy the contents of a package (hosted in a feed within VSTS) into a specific destination folder on the deployment target - is this possible with the native functionality of VSTS as it is with Octopus Deploy?

Upvotes: 2

Views: 467

Answers (2)

Marina Liu
Marina Liu

Reputation: 38096

There are multiple ways to achieve that:

Option 1: NuGet restore task

You can specify where to locate the NuGet packages in Destination directory option.

Option 2: Download Packages task

As Rodrigo mentions, you can use the Download Packages task to download a package.

Option 3: Execute nuget command direcly

You can use Command Line task or NuGet custom task to specify the the package and where to download the packages.

Upvotes: 1

Rodrigo Werlang
Rodrigo Werlang

Reputation: 2176

You can use the following task in your release definition.

enter image description here

As you can see you have to specify the feed in your VSTS, package, version and you also can specify the destination directory.

Upvotes: 0

Related Questions