[Mono-list] Embedding mono on windows

Robert Jordan robertj at gmx.net
Mon Mar 31 05:18:18 EDT 2008

Damien DALY wrote:
> Hi,
> I'd like to embed Mono into my app, but I haven't found some doc explaining
> how to do this using Windows and VS2008 (under XP and Vista).
> The starting point I have found is
> http://www.mono-project.com/Embedding_Mono
> If someone has help about Ebedded Mono under Windows, I would be pleased to
> hear about.

The docs apply to Windows/Visual Studio as well, but they don't explain
how to setup a project to the same extent like they do for linux or

Basically, you only need to generate an import library for mono.dll,
the dll that provides the embedding APIs.

Get this file:


and create mono.lib with Visual Studio's lib.exe tool:

	lib /nologo /def:mono.def /out:mono.lib /machine:x86

Then link you application with mono.lib.


More information about the Mono-list mailing list