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:
I've written an updated version of that post which I consider to be a better solution.
Bye
Juri
Scott Hanselman hasquite a good solution on this http://www.hanselman.com/blog/ManagingMultipleConfigurationFileEnvironmentsWithPreBuildEvents.aspx
Post a Comment