473,396 Members | 1,671 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

VS2005 -Solution Configurations & Project Settings

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
2 1705
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: clintonG | last post by:
I haven't installed VS2005 B2 yet. My main concern is installing VS2005 B2 on the XP Pro machine where VSN2003 already exists. Am I asking for trouble? Your comments... <%= Clinton Gallagher
2
by: -DG- | last post by:
No reply on my previous query, so I'll post this again. I've done a bit more research in the interim. I'm trying to find an easy way to port code from the older VS2003 format to the format used...
7
by: Hareth | last post by:
When VS2003 is installed : I can open Form1.cs w/ windows "open with" contextmenu, then it opens the file w/ notepad & it works fine but after installing VS2005, "open with" doesnt...
1
by: Dean Slindee | last post by:
Will there be a VS2003-style splitter control in VS2005 when it gets past Beta? I am not referring to the new splitter container in VS2005, but the original splitter control in VS2003. If not,...
9
by: MrSpock | last post by:
1. Create a new Windows Application project. 2. Open the project properties and check "Make single instance application". 3. Build. 4. Go to the release folder and run the application. 5. Try to...
56
by: Rob Dob | last post by:
VS2005 is a PIECE of Garbage and is bug Ridden, I wonder how many others feel the same, I am so sorry that I have moved away from VS2003, VS2005 is unstable, and half the stuff doesn't work, ...
9
by: yevvi | last post by:
Hi, We have a product with bunch of dlls which are now built with Visual Studio 2003. We want to switch the build to use VS2005. I have read that in VS2005 runtime libraries come as...
6
by: Ronald S. Cook | last post by:
I have been asked to write a ..NET Windows app using the 1.1 framework. I have both 1.1 and 2.0 on my PC. When I create a new project in Visual Studio 2005, it shows initial namespaces under...
2
by: Academia | last post by:
I have vs2005 installed on the System disk and vs2008 installed on a different disk. I want to remove VS2005. I read one time about some problem with uninstalling vs2005 after vs2008 is...
0
by: teo | last post by:
hallo I'm using vs2005 I set the validator to 'Xhtml transitional 1.0' I notice that the validator fails It doesn't detect some errors and it considers other ones as error but they are not ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.