debug and release configurations

  • Thread starter Thread starter Martin Hart
  • Start date Start date
M

Martin Hart

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.
 
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
 
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ó:
 
Back
Top