Hey Dominque,
When you reference another project within a solution you reference a
complied dll. However, you don't reference the dll located in the bin/
directory of dll project, it is referenced in the debug/ directory instead.
As for a best practice, its negotiable. Some like to perfect their dll's
before they reference it in a project, but then again, sometimes your
developing the whole thing together. It's kinda preference, just as long as
in the end, it all works well together.
In VB6 this was more of a concern (because DLL's were all ActiveX Dll's, not
regular DLL's) therefore had to be registered within the registry. Because
DLL's are no longer registered (unless they expose a COM interface) this
isn't as big of a concern (no more binary/project compatibility!)
Instead, in .NET, it references the debug version, which dynamically updates
the version referenced when compiled. (This is where project build order is
important, but VS.NET takes care of that for you).
In the end your always referencing a compiled assembly. Just where the
location is, what version it is changes between testing/deployment. It
should have no affect on performance in the end.
HTH,
CJ
"dominique" <an*******@Devdex.com> wrote in message
news:O0**************@tk2msftngp13.phx.gbl...
Hi,
In windows app, i have a solution with multiple projects.
If a project must "see" types (class, modules, structures, delegates,
enum) of an other project, we must add reference to this project (in
solution explorer, right clic on add reference, then third tab Add
project).
Now my question :
we can Add reference to the project or to the dll of the project (with
browse).
When do we choose "reference to a project" and when do we choose
"reference to the dll of the project" ?
What are the best practices ?
What are the impacts on debug mode and on executable file ?
If we choose "reference to the dll of the project" :
- what dll do we choose ? in the folder \bin or obj\debug ?
- how does VS work then in debug mode ? with the project.pdb ?
Thanks in advance.
Dominique Gratpain
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!