a solution and multiple projects

From: dominique (anonymous_at_Devdex.com)
Date: 09/08/04


Date: Wed, 08 Sep 2004 04:17:22 -0700

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!



Relevant Pages

  • Re: Debugging a DLL from a web service
    ... Make sure that the referenced assembly was built in debug mode, ... the bin directory with the dll. ... I did add a reference to the project (via the Projects tab in the Add ... When I run the web service and click a button on a test page, ...
    (microsoft.public.dotnet.languages.csharp)
  • VB FAQs (Interview Questions) lot lot
    ... Consider two objects, A and B. A holds a reference to B, ... Why do so many example programs not use the DLL name ... Private Declare Function SendMessage Lib "user32" ... Private Const BUFFER_LENGTH As Long = 255 ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Sharing Code
    ... What I found would happen is that when the device dll was built visual ... In the desktop project when you add a reference to the dll, ... > projects, one smart device and one desktop, but they're in the same ... > The 2 form projects have references to this class library projects. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Namespaces - broad question
    ... Reference the Class Library in your Page, ... > aspx pages that I know I want utilize a specific function within, ... > have the same codebehind page), how can I reference this function. ... >> A .Net assembly is a compiled DLL. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Namespace Question
    ... >>i saw that when i changed it to true my dll was copied to the bin folder ... >>the reference by looking in the following locations, ... Look for assemblies in directories specified with the Reference Path ... >> tried to use the GAC but the process to convert dll to be strong name ...
    (microsoft.public.dotnet.languages.vb)