Windows Vista Forums

In any project, Can't we refer classes directly, (without addingphysically in the project)?

  1. #1


    Rachana Guest

    In any project, Can't we refer classes directly, (without addingphysically in the project)?

    Hi !
    I am new to .net. Presently, Working in vb.net 1.1
    i have Created one class project and one client project (2 separate
    solutions)
    In the client project , if I try to ' add reference' for class,
    nothing is shown under project bar.
    I have to cumpulsorily add class project into my client project (add
    existing class), then only it shows class name under reference-
    project
    bar.
    does it mean every time I have to add required no. of classes
    physically, in any project? Then again give the reference of each?
    Can't it directly refered without adding physically?

    In Class project, I have used 'build Solution' from menu bar.
    In Client project, I tried 'browse' option,too.
    But it does not show class name untill physically added. ( file type:
    component files)

    What is the way to generate DLL?

    Thanks,
    Regards,
    Rachana

      My System SpecsSystem Spec

  2.   


  3. #2


    EagleRed Guest

    RE: In any project, Can't we refer classes directly, (without adding p

    You need to set a reference to the assembly containing the class. This will
    allow you to set up a namespace in your client project and then you can
    reference classes in the referenced assembly.

    Eagle

    "Rachana" wrote:

    > Hi !
    > I am new to .net. Presently, Working in vb.net 1.1
    > i have Created one class project and one client project (2 separate
    > solutions)
    > In the client project , if I try to ' add reference' for class,
    > nothing is shown under project bar.
    > I have to cumpulsorily add class project into my client project (add
    > existing class), then only it shows class name under reference-
    > project
    > bar.
    > does it mean every time I have to add required no. of classes
    > physically, in any project? Then again give the reference of each?
    > Can't it directly refered without adding physically?
    >
    > In Class project, I have used 'build Solution' from menu bar.
    > In Client project, I tried 'browse' option,too.
    > But it does not show class name untill physically added. ( file type:
    > component files)
    >
    > What is the way to generate DLL?
    >
    > Thanks,
    > Regards,
    > Rachana
    >

      My System SpecsSystem Spec


In any project, Can't we refer classes directly, (without addingphysically in the project)?
Similar Threads
Thread Forum
Hp m9040n project General Discussion
F.E.A.R. 2 Project Origins. Gaming
Cannot create new project .NET General
Project Templates .NET General
Microsoft Advances Its Project Management Technology and the Project Management Profession Vista News