views:

88

answers:

3

Is it possible to make some values in my Web.Config file dependent on whether I am building a release or debug based ASP.NET application?

+1  A: 

Yes.

You can use XDT transforms.

SLaks
+3  A: 

Yes you are looking for web.config and transformation, it's part of VS2010

confusedGeek
+2  A: 

Yes it is, but...

Using web.config transformations you can transform web.config for the deployment process. You can't use this for debugging purposes.

See my question on this topic.

http://stackoverflow.com/questions/2990384/vs-2010-web-config-transformations-for-debugging

Dirk