6

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.

1 Answer 1

3

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 line SAYED IBRAHIM HASHIMI Blog

Sign up to request clarification or add additional context in comments.

2 Comments

I would up vote if I had the required reputation, plus I was looking for some thing that allowed me to have SetParameter files instead of bundling the Web.Config transforms in the Package. But having looked high and low myself I can see you are correct.
Thank you. I upvoted you question so you will get some points.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.