Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating Multiple SetParameters.xml from One Build task

I am searching for a solution that allows me to generate a Web Deploy Package and the associated deploy.cmd and SetParameters.xml.

But I need to generate a deploy.cmd and SetParameters.xml Per Environment

I would need my output to look like the following

  • ProjectName.DevSetParameters.xml
  • ProjectName.DevDeploy.cmd
  • ProjectName.UATSetParameters.xml
  • ProjectName.UATDeploy.cmd
  • ProjectName.PRODSetParameters.xml
  • ProjectName.PRODDeploy.cmd
  • ProjectName.zip

Any help would be greatly appreciated.

like image 352
scriptmonkey Avatar asked Apr 22 '13 13:04

scriptmonkey


1 Answers

Check out Sayed Ibrahim Hashimi's blog and web package nuget extension he created. NuGet package that extends the web packaging process in Visual Studio to enable you to create a single package which can be published to multiple environments

Package once publish anywhere - you will need to look at the powershell script it creates and call it from your build task with the appropriate values.

Nuget install from VS command lineSAYED IBRAHIM HASHIMI Blog

like image 115
SoftwareCarpenter Avatar answered Nov 20 '22 07:11

SoftwareCarpenter