473,396 Members | 2,147 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.

References to debug vs. release

When I am building a project in Visual Studio 2005, I can create
references to assemblies that were built by other projects. The problem
is that I don't see how to create a reference that switches between the
debug and release builds of the other project, when I switch between the
debug and release configurations of my parent project.

That is, when I'm building, running, and of course debugging a project, I
want to use the debug versions of at least some of the assemblies I
reference, so that I can step into them as I debug. When I build the
release version of a project, I want the generated assembly to reference
the release versions of the assemblies it references.

And I want to do this without having to manually drop and restore the
references in question.

Am I out of luck? Or is there a way to do this that I've simply never
figured out?
--
Jefferson was unquestionably one of our giants. There was more in his
head than there has been in the heads of all the presidents in office
since he went out. He was a man of immense intellectual curiosity,
profound originality, and great daring. His integrity was of doric
massiveness. But was he always right? I don't think many reflective
Americans of today would argue that he was.
- H. L. Mencken
Jun 27 '08 #1
1 1401
You have to make sure the compile on all projects are set to Release. I am
not sure if setting at the solution level does this or not. If not, it is a
manual process.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:
http://gregorybeamer.spaces.live.com/

*************************************************
| Think outside the box!
|
*************************************************
"Jeff Dege" <jd***@jdege.visi.comwrote in message
news:_d******************************@posted.visi. ..
When I am building a project in Visual Studio 2005, I can create
references to assemblies that were built by other projects. The problem
is that I don't see how to create a reference that switches between the
debug and release builds of the other project, when I switch between the
debug and release configurations of my parent project.

That is, when I'm building, running, and of course debugging a project, I
want to use the debug versions of at least some of the assemblies I
reference, so that I can step into them as I debug. When I build the
release version of a project, I want the generated assembly to reference
the release versions of the assemblies it references.

And I want to do this without having to manually drop and restore the
references in question.

Am I out of luck? Or is there a way to do this that I've simply never
figured out?
--
Jefferson was unquestionably one of our giants. There was more in his
head than there has been in the heads of all the presidents in office
since he went out. He was a man of immense intellectual curiosity,
profound originality, and great daring. His integrity was of doric
massiveness. But was he always right? I don't think many reflective
Americans of today would argue that he was.
- H. L. Mencken
Jun 27 '08 #2

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

Similar topics

1
by: Eddy | last post by:
Problem: In 'solution A', 'project 1' references 'project 2'. As such, when 'solution A' is built (debug mode), project '1' creates a dll in /debug, and project '2' referneces that dll. All is good....
0
by: Stephen McCrea | last post by:
When I switch from debug to release in a solution that holds a few class library projects with some interdependencies bow can I direct the references from .../debug/x.dll to .../release/x.dll...
3
by: Ed Sutton | last post by:
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...
1
by: VM | last post by:
My solution has 4 projects, and two of those projects have a reference to a ZM_Utilities project (a class library) that's part of the solution. Whenever I compile to test, I "Build Solution", with...
0
by: Benjamin Harper | last post by:
I have a C# DLL that references a mixed-mode C++ DLL of mine. The mixed-mode DLL compiles either to a debug version or a release version. How can I specify in my C# project that I want the...
3
by: _DS | last post by:
The two obvious methods for ref'ing assemblies are: Add a reference and 'Browse' for the actual DLL OR Add existing project to the solution, then add a ref to 'Project'. 1: I'd like to...
8
by: Bruce | last post by:
I am using VB in Vs2005. Am I missing something or does VB not have the concept of "builds" (release/debug) like in VC? I wrote an assembly and I would like to have a debug version of the DLL...
3
by: DonJefe | last post by:
Does anyone have experience using project->project references in large solutions? What are the plus/minuses that you have found? Currently, we are using the binary assembly references for our...
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++...
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: 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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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...
0
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,...

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.