• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

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

R

Rachana

#1
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 Computer

E

EagleRed

#2
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 Computer

Users Who Are Viewing This Thread (Users: 1, Guests: 0)