Re: Make dll file
!> 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
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
"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 07:18 PM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.