[Mono-list] installing assembly from dll

Bartolomeo Nicolotti bnicolotti at siapcn.it
Wed Mar 4 10:47:33 EST 2009

Chris Howie wrote:
> 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
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list

Many thanks,

I could compile with gmcs -r ..., but the gac hasn't worked I had to put the
full path of dll
I think I've another problem, another dll, cwbx.dll, I'm trying to use to
migrate a web service that connects to db2 systemi as400, is not manged,
i.e. is a normal windws dll, no assembly, when I try to add it with gacutil
i get not an assembly, I think I'll have to do some dllWrap, do you have
some hints?

Many thanks

Best regards

Many thanks
View this message in context: http://www.nabble.com/installing-assembly-from-dll-tp22289868p22332669.html
Sent from the Mono - General mailing list archive at Nabble.com.

More information about the Mono-list mailing list