Link to home
Start Free TrialLog in
Avatar of codequest
codequest

asked on

How does code in one VS project reference code in another? Through "references"?

I avoid using multiple projects in my VS solutions because I don't understand them. This seems to be so basic a question that it doesn't show up in the initial google pages.  So...

How does code in one project use code in a second project?  If it is through references, what is the reference name of a project?

Any short explanations or links to documentation on this would be appreciated.

Thanks!
SOLUTION
Avatar of Miguel Oz
Miguel Oz
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Having them in the same namespace will enable to work with each other.
Avatar of codequest
codequest

ASKER

Thanks for the input.  I think I need to back up one whole level of newbie on this.  I'm using an asp.net website (not web application).   When I set up a test solution, add two websites, then try to, for one of the websites, add>reference>solution>projects, I see no entries.  Is this to be expected, and is it because a reference is to a dll, and websites don't have dll's?  As you can see, perhaps I need a more elementary starting point for this subject.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial