VS2005 -Solution Configurations & Project Settings

B

Bishman

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.
 
J

Jianwei Sun

Bishman said:
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\**";
 
B

Bishman

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top