473,386 Members | 1,828 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,386 software developers and data experts.

How make Release build use references to Release components & visa versa?

My solution contains multiple C# and C++ components as well as a deployment
project.

In my top-level C# WinForms application, I added references to some
components by browsing to the \bin\debug\*.dll of the desired component.
How can I make it use a debug build of a component for a debug build, and a
release build of a component for a release build?

Thanks in advance for any tips or direction,

-Ed
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.520 / Virus Database: 318 - Release Date: 9/19/2003
Nov 15 '05 #1
3 1468
"Ed Sutton" <no****************@nomadics.com> wrote in message
news:uL*************@TK2MSFTNGP10.phx.gbl...
In my top-level C# WinForms application, I added references to some
components by browsing to the \bin\debug\*.dll of the desired component.
How can I make it use a debug build of a component for a debug build, and a release build of a component for a release build?


We created a build tool that sets the references on the fly based on whether
it's debug or release. It's too bad VS doesn't allow you to separate them
out in the project.

-- Alan
Nov 15 '05 #2
Doesn't VS do this itself if you set a reference to a project instead of a dll?

--
Robert Jeppesen
robert.jeppesen%at%durius-dot-se
"Alan Pretre" <no@spam> wrote in message news:Og**************@TK2MSFTNGP12.phx.gbl...
"Ed Sutton" <no****************@nomadics.com> wrote in message
news:uL*************@TK2MSFTNGP10.phx.gbl...
In my top-level C# WinForms application, I added references to some
components by browsing to the \bin\debug\*.dll of the desired component.
How can I make it use a debug build of a component for a debug build, and

a
release build of a component for a release build?


We created a build tool that sets the references on the fly based on whether
it's debug or release. It's too bad VS doesn't allow you to separate them
out in the project.

-- Alan

Nov 15 '05 #3
"Robert Jeppesen" <robert.jeppesen(#)durius.se> wrote in message
news:Ox**************@tk2msftngp13.phx.gbl...
Doesn't VS do this itself if you set a reference to a project instead of a

dll?

Project references are OK. The problem will come with references to foreign
assemblies (those not built in your solution).

-- Alan
Nov 15 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Web Developer | last post by:
Hi, Can someone provide a short and concise statement(s) on the difference between pointers and references. A graphical representation (via links?) of both would be much appreciated as well. ...
4
by: pnp | last post by:
I'm developing an app (in C #) that uses 2 usercontrols that must be in different dll's. The problem is that each one needs to use the other, so as a result I get a circular reference error when I...
7
by: Srinivasa Rao | last post by:
I have read in one article that when we compile the application in release mode, all the debug classes and properties will be automatically removed from the code. I tried to implement this thing by...
6
by: Andrew Rowley | last post by:
I am having trouble getting debug and release builds to work properly with project references using C++ .NET and Visual Studio 2003. I created a test solution, with a basic Windows form C++...
1
by: jdwix | last post by:
I have been developing in VB6 for several years and have become accustomed to loading whatever VB projects I need to debug into a group and having the ability to step through the code and make...
4
by: fniles | last post by:
I am using VisualStudio 2005 (VB.Net). A weird thing happens. I used to have a button and a textbox on my form, and I deleted them. I do a Build on a Release mode. But, the EXE that it creates is...
6
by: =?Utf-8?B?SHVnaA==?= | last post by:
Hi there We are trying to build a C sharp solution in Visual Studio 2005 Professional. We have a number of other assemblies, that do not form part of the solution. Assemblies that do form...
7
by: eschneider | last post by:
I have a webservice which every time I build it keeps adding Crystal references into the web.config? <add assembly="CrystalDecisions.Shared, Version=10.2.3600.0, Culture=neutral,...
3
by: =?Utf-8?B?bG10dGFn?= | last post by:
We have developed a number of different applications (ASP.NET web site, Windows services, DLLs, Windows forms, etc.) in C# 2.0. We have developed and unit tested all these applications/components...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...

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.