Hi:
I have a project that references some in-house assemblies, and in the
'debug' configuration I use the debug versions of these assemblies, but
when I switch to the 'release' configuration, I want the solution to use
the 'release' versions of the referenced assemblies.
How should I go about this?
TIA,
MartinH. 2 1189
Hi Martin,
You have to include the project of the referenced assembly into your
solution and add the reference as a "Project Reference" if you want Visual
Studio to reference the appropriate assemblies for building simply by
changing the solution configuration.
Your other option is to create a custom add-in or use the Pre-build event to
swap the actual .dll being referenced with the appropriate version (not sure
if that will even work)
Your best option is probably to use a project reference.
HTH
"Martin Hart" <"martin dot hartturner at gmail dot com"> wrote in message
news:%2******** ********@TK2MSF TNGP05.phx.gbl. .. Hi:
I have a project that references some in-house assemblies, and in the 'debug' configuration I use the debug versions of these assemblies, but when I switch to the 'release' configuration, I want the solution to use the 'release' versions of the referenced assemblies.
How should I go about this?
TIA, MartinH.
Dave:
Thanks very much for the response.
I must admit I didn't even know that a "Project Reference" existed, I
will check it out :-)
Thanks again,
Martin.
Dave Sexton escribió: Hi Martin,
You have to include the project of the referenced assembly into your solution and add the reference as a "Project Reference" if you want Visual Studio to reference the appropriate assemblies for building simply by changing the solution configuration.
Your other option is to create a custom add-in or use the Pre-build event to swap the actual .dll being referenced with the appropriate version (not sure if that will even work)
Your best option is probably to use a project reference.
HTH
"Martin Hart" <"martin dot hartturner at gmail dot com"> wrote in message news:%2******** ********@TK2MSF TNGP05.phx.gbl. .. Hi:
I have a project that references some in-house assemblies, and in the 'debug' configuration I use the debug versions of these assemblies, but when I switch to the 'release' configuration, I want the solution to use the 'release' versions of the referenced assemblies.
How should I go about this?
TIA, MartinH.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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. When 'solution A' is built in release mode however, 'project 1' is recompiled and the new dll is put into '/release', but 'project 2' still references the dll from project '1's /debug folder, and as such is compiled using the older /debug version of...
|
by: muz dogru |
last post by:
Hi,
my question is concerning the visual studio .net 2003 environment. In
C++ projects for example, it is possible to define different postbuild
codes for debug configurations and release configurations. I have tried
to use different postbuild scripts for these two configurations for my
C# project, but VS2003 cannot distinguis the postbuild between the two
configurations. Isn't that possible for C# projects?
thx a lot
|
by: Wysiwyg |
last post by:
Is there any way besides adding a specific debug command line argument for
the project to tell if an application is running in debug mode?
Thanks!
Bill
|
by: Coder Coder |
last post by:
Hi,
Im want to release my web project and the configurations inside my
web.config are very different from my development environment to my
production environment.
I was wondering is there a way to have the debug version use one
web.config file, while the release version uses a release version of
the web.config.
|
by: swartzbill2000 |
last post by:
Hello,
I have a VB 2005 Express project with a TraceListener-derived class to
route Debug.Print output to a log file. It works fine for Debug builds.
What is the correct combination of changes to make it work in Release
build?
Bill
| |
by: Joe Befumo |
last post by:
When I tried debugging for the first time, I pop-up asked me if I wanted to set the project to enable debugging. Now I'm ready to release and can't find anyplace to set the build to 'release'. A pointer would be appreciated. Thanks.
Joe
|
by: adhingra |
last post by:
I stumbled upon something which does not make sense "Debug class methods are
not automatically suppressed by the managed c++ compiler when the project is
build in release mode"
Create a a Project (Windiows Forms or Console) in VS2005 using Managed C++
and put a Debug:;Assert(false) or Debug::Writeline("test") in there and then
compile in Debug and release Configurations. The result is the same in both.
Debug class calls are not...
|
by: Zytan |
last post by:
When I do this, all code in the middle turns gray. I assume this is
because DEBUG is not defined. But, I thought it was for debug mode.
Is there something I am missing, or do people manually add DEBUG to
the debug mode compilation? How do I tell the IDE which mode I am
currently in (debug / release), like VC++ allows me to (it says in a
toolbar which compilation mode you are currently in)? Perhaps I am
merely in release mode, and thus...
|
by: Andy B |
last post by:
How do you tell vs2005 to keep debug info out of your release builds? When I
build a release and a debug version, there seems to be no difference in them
at all...The release builds still have the debug databases with them...
|
by: Jeff Dege |
last post by:
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...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |