Debugging assemblies: Forcing EXE to reload DLL

D

_D

When debugging an assembly, obviously a startup Exe file must be set.
I've run into a snag once in a while that appears to be caused by VS
referring to the Exe's *local* copy of the target DLL rather than the
one that has just been recompiled.

Is there an recommended method for ensuring that a newly compiled DLL
also gets copied over the DLL in the startup Exe's folder?
 
?

=?ISO-8859-1?Q?Lasse_V=E5gs=E6ther_Karlsen?=

_D said:
When debugging an assembly, obviously a startup Exe file must be set.
I've run into a snag once in a while that appears to be caused by VS
referring to the Exe's *local* copy of the target DLL rather than the
one that has just been recompiled.

Is there an recommended method for ensuring that a newly compiled DLL
also gets copied over the DLL in the startup Exe's folder?

Questions:
1. is the project for the dll in the same solution as the exe project?
2. if it is, did you add a reference to the project or to the dll?

If the answer to #1 is "yes" and to #2 is "to the dll", try adding a
reference to the project instead, this will ensure VS copies the fresh
dll to the output directory for the exe project.

Other than that I don't know why that should happen.
 

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