By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,894 Members | 1,937 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,894 IT Pros & Developers. It's quick & easy.

VS2005 -Solution Configurations & Project Settings

P: n/a
Hi,

Quick question:

Is it possible to use different Solution Configurations ( Release / Build )
in order to determine which DB you are connecting to ( Dev vs Live)

I would have thought that the Project Settings where specific for a build
type so you could connect to a Dev DB for developemnt and likewise when
publishing a live build.

Am I missing something and / or what is the best way to achieve this ?

Thanks.
Jon.
Sep 27 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Bishman wrote:
Hi,

Quick question:

Is it possible to use different Solution Configurations ( Release / Build )
in order to determine which DB you are connecting to ( Dev vs Live)

I would have thought that the Project Settings where specific for a build
type so you could connect to a Dev DB for developemnt and likewise when
publishing a live build.

Am I missing something and / or what is the best way to achieve this ?

Thanks.
Jon.

What about use predefine..

#if DEBUG
string dbPath = "C:\debug\**";
#else
string dbPath = "C:\release\**";
Sep 27 '06 #2

P: n/a
Yeah, I did think about that but I was hoping the design environment may be
able to handle this.

I will need to change the app to set the connection settings in code and not
use the 'Project Settings' if I do that ? I believe.....

Jon


"Jianwei Sun" <js***********@gmail.comwrote in message
news:eT**************@TK2MSFTNGP05.phx.gbl...
Bishman wrote:
>Hi,

Quick question:

Is it possible to use different Solution Configurations ( Release /
Build ) in order to determine which DB you are connecting to ( Dev vs
Live)

I would have thought that the Project Settings where specific for a build
type so you could connect to a Dev DB for developemnt and likewise when
publishing a live build.

Am I missing something and / or what is the best way to achieve this ?

Thanks.
Jon.
What about use predefine..

#if DEBUG
string dbPath = "C:\debug\**";
#else
string dbPath = "C:\release\**";

Sep 27 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.