Understanding references...

  • Thread starter Thread starter VM
  • Start date Start date
V

VM

My solution has 4 projects, and two of those projects have a reference to a
ZM_Utilities project (a class library) that's part of the solution.
Whenever I compile to test, I "Build Solution", with Active Solution
Configuration = Debug (and everything underneath in Debug). The only time I
do a "Batch Build" is when I need to create a "Release" version of the Win
applications for the users to test.

In my ZM_Utilities.Utilities class, I added a new method but when I
recompile everything, the projects don't recognize the new method. So I went
to all directories and erased all copies of ZM_Utilities.dll because they
all had modification dates previous to the time I added the new methos..
When I compile again, one of the errors I get is: "Metadata file
'C:\Zipmaster7\Dev\ZMmatch\bin\Release\ZM_Utilities.dll' could not be
found".

Why is it looking for a a DLL in Release if everything I'm doing is in Debug
mode? And how can it automatically update all DLL copies in the Solution
dir. once I make a change to it? Even if I compiled that ZM_Utilities, the
date doesn't change. And when I erase it, it'll copy an older version of the
DLL (not the modified one).


Any help would be appreciated.
 
VM said:
My solution has 4 projects, and two of those projects have a reference to a
ZM_Utilities project (a class library) that's part of the solution.
Whenever I compile to test, I "Build Solution", with Active Solution
Configuration = Debug (and everything underneath in Debug). The only time I
do a "Batch Build" is when I need to create a "Release" version of the Win
applications for the users to test.

In my ZM_Utilities.Utilities class, I added a new method but when I
recompile everything, the projects don't recognize the new method. So I went
to all directories and erased all copies of ZM_Utilities.dll because they
all had modification dates previous to the time I added the new methos..
When I compile again, one of the errors I get is: "Metadata file
'C:\Zipmaster7\Dev\ZMmatch\bin\Release\ZM_Utilities.dll' could not be
found".

Why is it looking for a a DLL in Release if everything I'm doing is in Debug
mode? And how can it automatically update all DLL copies in the Solution
dir. once I make a change to it? Even if I compiled that ZM_Utilities, the
date doesn't change. And when I erase it, it'll copy an older version of the
DLL (not the modified one).

When adding a reference to an assembly that is built as one of the
Projects in the current Solution, make sure that you add it via the
"Projects" tab in the Add References dialog box.

That way instead of referring to a particular file on the file system,
the build will refer to the output of the build for that project.
 
Back
Top