Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   Re: Make dll file (http://www.velocityreviews.com/forums/t691619-re-make-dll-file.html)

Juan T. Llibre 07-17-2009 10:50 PM

Re: Make dll file
 
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
>







All times are GMT. The time now is 12:29 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.