Friday, February 28, 2003 8:59 AM
HomeSkillet
Development vs Production web.config files
Well I just find another one (It's new for me).
What I do is after a first copy of my application to my Production server,
everytime I need to update the site I exclude Webconfig from the project, copy
and include again WebConfig. [ heLP .Net Blog ]
I so something similar to this but instead of
excluding the web.config I sets its build action to none. When
I am ready to deploy, I use the copy project feature of VS.NET
select the copy only the files needed for this application
option and the click ok. In the copied project folder, I make any
changes I need to the web.config file to prepare it for deployement (i.e. update
paths, etc.). Then in my main project in VS.NET, I set the
web.config's build action to none. This prevents my
production web.config from being overwritten by my dev
version.
Filed under: ASP.NET