debug and release configurations

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.
 
D

Dave Sexton

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
 
M

Martin Hart

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ó:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top