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

  • Thread starter Thread starter Ben
  • Start date Start date
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
 
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.
 
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
 
Back
Top