Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create web deploy package in VSTS/VSO Build vNext?

I have an automated build in Visual Studio Team Services (formerly Visual Studio Online. The solution is building correctly. How do I configure it so it will also create a web deploy package?

like image 764
Mauricio Aviles Avatar asked Feb 10 '16 17:02

Mauricio Aviles


People also ask

How to create a Web Deploy package?

To configure settings on the Connection tabIn the Publish method drop-down list, select Web Deploy Package. In the Package location box, enter the path to where you want the package to be created, including the . zip file name; for example, c:\temp\<projectname>. zip.


2 Answers

We use the following MSBuild Arguments: /p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build.artifactstagingdirectory)\\"

With these you do not need to create a new publishing profile.

like image 60
david Avatar answered Oct 04 '22 15:10

david


We enable web deploy package creation within the "Visual Studio Build" task. Simply pass the following MS Build arguments:

MSBuild Arguments: /p:DeployOnBuild=true;PublishProfile=<name of your profile>

like image 36
Mauricio Aviles Avatar answered Oct 04 '22 14:10

Mauricio Aviles