0

To deploy a website on production or UAT server, I perform following steps.

1)Build my website in build\release mode.

2)Copy the files manually and paste it on the production server.

I want to apply web.config transformations when website is bulid in release mode. Is it possible? or is there any other way to change the value of connection string automatically when website is deployed on server.

I am not using webpublish or web packages methods for deployment.

Dee
  • 1,393
  • 4
  • 20
  • 37
  • Is there a GOOD reason why you don't just publish your website? Copying the files manually isn't the right thing to do it. I guess that you develop the asp.net website using Visual Studio. – Coral Doe Aug 01 '12 at 07:26
  • Also check out these questions, as they may provide usefull informations [How do I do Web.config Transformations with Visual Studio Website Projects?](http://stackoverflow.com/questions/5082126/how-do-i-do-web-config-transformations-with-visual-studio-website-projects), [How to setup web.config transformation for website projects?](http://stackoverflow.com/questions/8765812/how-to-setup-web-config-transformation-for-website-projects) – Coral Doe Aug 01 '12 at 08:24

1 Answers1

0

You can use web publish to file system which is exactly as copy paste. You can publish to a folder in your machine and copy to server from there. After you run the publish, the files can be also found in obj\release\Package\PackageTmp

Amiram Korach
  • 13,056
  • 3
  • 28
  • 30