Multiple configurations

  • Follow


I'll be setting up to be able to install multiple versions later, but right 
now I'd like to know if it's possible to setup different settings in 
different configurations.  Such as, configuration=test, 
connectionstring=test_db, then in configuration=production, 
connectionstring=prod_db.

Am I making sense and is this possible without a bunch of startup code? 


0
Reply Rick 4/6/2010 4:04:26 PM

Where I work we just use different config files and rename them based on 
deployment. For example we have web.config.dev, web.config.qa and 
web.config.prod.

When we move the code over to the specific server we just remove the 
appropriate suffix.

David


======================================
David McCarter [Microsoft MVP]
www.dotNetTips.com
David McCarter''''s .NET Coding Standards available at:
http://codingstandards.notlong.com


"Rick" wrote:

> I'll be setting up to be able to install multiple versions later, but right 
> now I'd like to know if it's possible to setup different settings in 
> different configurations.  Such as, configuration=test, 
> connectionstring=test_db, then in configuration=production, 
> connectionstring=prod_db.
> 
> Am I making sense and is this possible without a bunch of startup code? 
> 
> 
> .
> 
0
Reply Utf 5/10/2010 4:06:01 PM


1 Replies
171 Views

(page loaded in 0.02 seconds)


Reply: