Not getting latest on DLL?

  • Thread starter Thread starter Brett Romero
  • Start date Start date
B

Brett Romero

I have a DLL "file" reference in my project. The DLL has been updated.
I recompile my project but it does not see the DLL updates. I remove
and add back the DLL. Now I can see the updates.

This is a random thing. Sometimes the updates come through without my
having to remove/add the DLL. I'm using VS 2003. Any ideas on why
this happens?

Thanks,
Brett
 
Its about how you reference the dll. Add the reference by browsing to the
dll on the projects tab and VS.net should expect it to update.
It should always compile fine but I expect you are just experiencing issue
with intellisense.

Ciaran
 
I believe you are right about the issue being intellisense. Is there a
way to fix this when it occurs?

Thanks,
Brett
 
Brett,

Highlight the reference, and set the "Copy Local" property to false.
This should tell the IDE to not copy the dll locally and use that as a
reference (instead, pointing to your dll).

Of course, you probably will have to reload the project, or re-add the
dll if you compile the other dll and make changes.

In this case, you should really just add that project to your solution
and then set the reference to that project, instead of the dll itself.

Hope this helps.
 
What is the difference in including the DLL as a project? Will it at
that point just compile all the DLLs into the main project as one DLL?

Thanks,
Brett
 
Brett,

No, rather, it will know that the project you referenced is a dependency
of your project. That way, if something changes, the reference updates
accordingly.

A solution is a set of projects, with multiple outputs, not just one
output.
 
I'm trying to avoid having to include other projects into my project.
The point is to use stand alone DLLs and allow people to develop only
their project with out worrying about other projects. Once an updated
DLL is released, you get it and the PDB, rebuild your project and you
have the latest and greatest. The method your describing is more time
consuming and complicated. You'll have to setup local VSS maps,
integrate the projects into VSS and start doing get latest. The way it
is done now, you just get the latest DLL and rebuild one project.

Brett
 
Back
Top