Release / Debug

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
 
A

AW

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.
 
C

Chee Seong Ong

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">
..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top