473,548 Members | 2,691 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1712
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******** ******@TK2MSFTN GP05.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
1753
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
2761
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 in VS2005. VS2005 uses partial classes to split off the compiler-generated sections of forms. It keeps the editable files uncluttered. I...
7
1627
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 function correctly. If I try to open with notepad, it forces an open to VS2005
1
1518
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, then a lot of forms designed with splitters in legacy VS.NETs may be more painful to port/upgrade into VS2005? Should I be concerned? Thanks,...
9
5105
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 open a second instance of the application. This will cause an unhandled exception and the "Send Error Report" box shows up. Does this happen to...
56
3515
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, Microsft has spent so much time trying to make it simply that when you try to do something useful with it it doesn't work... Half the time it...
9
1973
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 side-by-side assemblies and that application has to have a manifest binding it to those assemblies. My question is, can previously built apps use my new...
6
2459
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 references (System, System.Data) all of which are version 2.0. How can I tell my project to use only the 1.1 framework? Thanks, Ron
2
2434
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 installed but can't find the site now. Is there a problem? Would reinstalling vs2008 fix any problem that may occur because of uninstalling vs2005.
0
879
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 I'm ASSUMING that what w3c validator says is RIGHT
0
7711
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7954
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7805
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6039
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5367
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5085
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3497
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3478
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1054
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.