How can I prevent Publish Web Site from overwriting web.config?

S

Stan B

Publish Web Site in VS.NET 2005 helps but I don't want it to copy web.config
to from development to staging.

It doesn't seem be a way around it, or maybe I'm missing something?
 
G

Guest

I don't think there is an easy way around this. However, if you have settings
that you don't want to have to re-enter, you can use the appSettings section
that allows you to specify an external file from which the appSettings
section is loaded. The appSettings element attribute is 'file=...'
Peter
 
S

Stan B

I found a workaround:

1. Publish web site to the local IIS
2. Add compiled web site from local ISS to VS.NET solution
3. Using Copy Web tool select all files in the source site except web.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

Members online

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,151
Latest member
JaclynMarl
Top