2

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?

LoneRanger
  • 1,909
  • 2
  • 13
  • 13

3 Answers3

3

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

Glorfindel
  • 21,988
  • 13
  • 81
  • 109
Ken Henderson
  • 2,828
  • 1
  • 18
  • 16
2

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.

VS 2010 Web.config transformations for debugging

Community
  • 1
  • 1
Dirk Brockhaus
  • 4,922
  • 3
  • 38
  • 47
1

Yes.

You can use XDT transforms.

Glorfindel
  • 21,988
  • 13
  • 81
  • 109
SLaks
  • 868,454
  • 176
  • 1,908
  • 1,964