How to deploy your webapp, when you have Productivity, Test and Development Server

For each different deployment server, we usually have different web.config Files.
Cause every server has its own database instance.

Set the properties "Build Action" on file web.config to "None" and "Copy to Output Directory" to "Do not copy".

 

* Tip from Juri Strumpflohner, who also has a blog entry about this: Best practices: Deploying webapps

2 comments:

Juri Strumpflohner said...

I've written an updated version of that post which I consider to be a better solution.

Bye
Juri

Anonymous said...

Scott Hanselman hasquite a good solution on this http://www.hanselman.com/blog/ManagingMultipleConfigurationFileEnvironmentsWithPreBuildEvents.aspx

Post a Comment

Latest Posts

Popular Posts