Re: Make dll file

Discussion in 'ASP .Net' started by Juan T. Llibre, Jul 17, 2009.

  1. re:
    !> How to make a dll file from this class file so that another application can use it as reference?

    Create a helper class ( anyName.cs or anyName.vb ), compile the class
    to an assembly, and place the assembly in the /bin directory of your application.

    vbc /t:library /out:anyName.dll anyName.vb

    anyName.dll will be created/compiled in the current directory.

    Move the assembly to the /bin directory of your application and fire away.
    If you want to have VS.NET use it, reference it in your project.

    If you want to use C#, then the command line would be :

    csc /t:library /out:anyName.dll anyName.cs

    If you need to import .Net classes, include them in your command line:

    vbc /t:library /r:system.dll /r:system.web.dll /out:anyName.dll anyName.vb
    or
    csc /t:library /r:system.data.dll /r:system.web.dll /out:anyName.dll anyName.cs

    After that, you can import the namespace into any page with :

    <%@ Import Namespace="YourClassname" %>



    Juan T. Llibre, asp.net MVP
    ¿ Estas probando VS 2010 y ASP.NET 4.0 ?
    Regístrate (gratis) en los Foros de VS 2010 y ASP.NET 4.0, en español
    http://asp.net.do/foros/forums/
    =====================================================
    "aspfun via DotNetMonster.com" <u53138@uwe> wrote in message news:9938d4a58c72f@uwe...
    >I created some function and sub and sored them in a class file.
    > How to make a dll file from this class file so that another application can
    > use it as reference?
    >
    > --
    > Message posted via http://www.dotnetmonster.com
    >
    Juan T. Llibre, Jul 17, 2009
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Anushi
    Replies:
    5
    Views:
    8,625
  2. Replies:
    0
    Views:
    318
  3. many_years_after

    How to make a python file to a DLL?

    many_years_after, Nov 16, 2006, in forum: Python
    Replies:
    3
    Views:
    305
    Larry Bates
    Nov 16, 2006
  4. Replies:
    2
    Views:
    502
    Larry Bates
    Mar 9, 2007
  5. H. Simpson
    Replies:
    4
    Views:
    243
    H. Simpson
    Aug 3, 2004
Loading...

Share This Page