[Mono-list] installing assembly from dll

Chris Howie cdhowie at gmail.com
Mon Mar 2 13:00:36 EST 2009


On Mon, Mar 2, 2009 at 10:09 AM, Bartolomeo Nicolotti
<bnicolotti at siapcn.it> wrote:
> i'm using mono on windows, i've a dll which contains code for accessing
> db2-iseries
>
> how do i let mono be aware of this dll so that i can compile and run?

If you are using Monodevelop, right-click the references folder in
your project and add that assembly.  If you are using mcs/gmcs then
use -r:path/to/yourfile.dll as an argument to add the assembly
reference.

To allow Mono to find the library at runtime, either place the dll in
the same directory as your application, or add it to the GAC using
gacutil (see 'man gacutil' for information on using this command).

Note that you should not need to compile on Linux if you already have
a binary compiled on Windows.  The binary format is compatible and
assemblies compiled on Windows will be loadable by Mono on Linux, and
vice-versa.

-- 
Chris Howie
http://www.chrishowie.com
http://en.wikipedia.org/wiki/User:Crazycomputers


More information about the Mono-list mailing list