3

i would like to use the "ConfigurationManager" settings, that i can create in VS 2008 ( see image ), to create different behaviors in my web.config or app.config files... for example i want to use different connection strings, if the "debug"-configuration is active, like:

<configuration>
   <connectionStrings configSource="connectionStrings.config.$(ConfigurationName)"/>
</configuration>

alt text

Any suggestions how to do that? ( Or maybe in another way than this? )

Thanks

Community
  • 1
  • 1
David
  • 2,551
  • 3
  • 34
  • 62
  • Refer to this. . . http://stackoverflow.com/questions/132544/net-configuration-app-config-web-config-settings-settings – Marc Vitalis Aug 24 '09 at 08:45

1 Answers1

0

How about web.config transformation? How to: Transform Web.config When Deploying a Web Application Project.

Darius Kucinskas
  • 10,193
  • 12
  • 57
  • 79