Debugging assemblies: Forcing EXE to reload DLL  
Author Message
Gemini271





PostPosted: Mon Jan 09 07:35:54 CST 2006 Top

Visual C#.Net >> Debugging assemblies: Forcing EXE to reload DLL 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?

DotNet246  
 
 
lasse





PostPosted: Mon Jan 09 07:35:54 CST 2006 Top

Visual C#.Net >> Debugging assemblies: Forcing EXE to reload DLL _D wrote:
> 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.

--
Lasse Vågsæther Karlsen
http://usinglvkblog.blogspot.com/
mailto:EMail@HideDomain.com
PGP KeyID: 0x2A42A1C2