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

B

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
 
V

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.
 
B

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top