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

Mauricio Aviles picture Mauricio Aviles · Feb 10, 2016 · Viewed 8k times · Source

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?

Answer

david picture david · Dec 8, 2016

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.