Home All Groups Group Topic Archive Search About

how to add a reference in asp.net/vb.net?

Author
17 May 2006 6:27 PM
Ben
Hi,

I need to add a reference in my project to a file (e.g. mysqldata.dll) in
order to access Mysql.
Using Visual Web Developer, i know how to do (menu website/add reference),
but suppose i have no VWD or any tools, and that i create only one test.aspx
file and another test.aspx.vb file with Notepad.
How can i add a reference directly in the files in order to access Mysql?

Thanks
Ben

Author
17 May 2006 6:42 PM
vbnetdev
csc.exe /t:library /r:bin\SomeDependantAssembly.dll
/r:bin\SomeOtherAssembly.dll
/out:bin\MyAssembly.dll file1.cs file2.cs file3.cs


So, /t: says to build a DLL assembly
/r: is a reference to the path of any dependant assembly
/out: says where to put the generated assembly
and then all the files that should be compiled into that assembly


If you're interested in a debug build, add /debug in there too.

--
Get a powerful web, database, application, and email hosting with KJM
Solutions
http://www.kjmsolutions.com



Show quoteHide quote
"Ben" <sd***@sdsv.fv> wrote in message
news:ONrlV%23deGHA.2172@TK2MSFTNGP04.phx.gbl...
> Hi,
>
> I need to add a reference in my project to a file (e.g. mysqldata.dll) in
> order to access Mysql.
> Using Visual Web Developer, i know how to do (menu website/add reference),
> but suppose i have no VWD or any tools, and that i create only one
> test.aspx
> file and another test.aspx.vb file with Notepad.
> How can i add a reference directly in the files in order to access Mysql?
>
> Thanks
> Ben
>
>
Author
18 May 2006 3:40 PM
Ben
Thanks, but do have i to type all this like that? And where? In the vb.net
code?
I have only an aspx file and an aspx.vb file with vb.net code
My reference file is in c:\program files\mysql\net\mysqldata.dll

Thanks


Show quoteHide quote
"vbnetdev" <vbnetdev@community.nospam> wrote in message
news:e8mv8GeeGHA.2076@TK2MSFTNGP04.phx.gbl...
> csc.exe /t:library /r:bin\SomeDependantAssembly.dll
> /r:bin\SomeOtherAssembly.dll
> /out:bin\MyAssembly.dll file1.cs file2.cs file3.cs
>
>
> So, /t: says to build a DLL assembly
> /r: is a reference to the path of any dependant assembly
> /out: says where to put the generated assembly
> and then all the files that should be compiled into that assembly
>
>
> If you're interested in a debug build, add /debug in there too.
>
> --
> Get a powerful web, database, application, and email hosting with KJM
> Solutions
> http://www.kjmsolutions.com
>
>
>
> "Ben" <sd***@sdsv.fv> wrote in message
> news:ONrlV%23deGHA.2172@TK2MSFTNGP04.phx.gbl...
> > Hi,
> >
> > I need to add a reference in my project to a file (e.g. mysqldata.dll)
in
> > order to access Mysql.
> > Using Visual Web Developer, i know how to do (menu website/add
reference),
> > but suppose i have no VWD or any tools, and that i create only one
> > test.aspx
> > file and another test.aspx.vb file with Notepad.
> > How can i add a reference directly in the files in order to access
Mysql?
> >
> > Thanks
> > Ben
> >
> >
>
>