Release / Debug

  • Thread starter Thread starter Coder Coder
  • Start date Start date
C

Coder Coder

Hi,

Im want to release my web project and the configurations inside my
web.config are very different from my development environment to my
production environment.

I was wondering is there a way to have the debug version use one
web.config file, while the release version uses a release version of
the web.config.

- Thanks
 
Hi,

I don't think that it is possible, but what you can do instead is to have
two different Web.config: one that is on your debugging machine, and one
that is on the release server; when you deploy the web application, copy
everything needed excepted the Web.config.
 
If all you configuration is in the appsetting section, you can have a local
config file that exist beside your web.config. Store all your development
configuration in the local.config. The format of local.config is the same
as web.config.

<appSettings file="local.config">
..
 
Back
Top