Referencing Class Libraries

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

PRODUCT: C# 2005 Beta 1

I wrote a class library and want to include it in my Windows application.
The namespace of the class library is TokenizerClasses. How do I do it? I
already included it in my solution, but the rest I have no clue about.
 
a) you don't need to include the source code in your solution, although
doing so provides a few benefits.
b) the project (within the solution) needs to add your library to the list
of references.
c) your library should have a unique namespace
(CompanyName.AreaOfFunctionality.SpecificProject)
d) in C#, add a 'using' statement to the top of any code file that needs to
"see" the classes in that namespace (This is shorthand... you could use the
fully qualified name if you want, but it can get tiring to type).

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
 
Back
Top