Referencing Class Libraries

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • psduckie

    Referencing Class Libraries

    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 TokenizerClasse s. How do I do it? I
    already included it in my solution, but the rest I have no clue about.
  • Nick Malik [Microsoft]

    #2
    Re: Referencing Class Libraries

    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.Ar eaOfFunctionali ty.SpecificProj ect)
    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


    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.
    --
    "psduckie" <psduckie@discu ssions.microsof t.com> wrote in message
    news:5D108930-8F8E-47E8-9B0E-A67749FD5AC4@mi crosoft.com...[color=blue]
    > 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 TokenizerClasse s. How do I do it?[/color]
    I[color=blue]
    > already included it in my solution, but the rest I have no clue about.[/color]


    Comment

    Working...