[Mono-list] Mono Embedding in Visual Studio 2008

Robert Jordan robertj at gmx.net
Sun Mar 29 15:43:17 EDT 2009

Yenian wrote:
> I'm attempting to embed Mono in a DirectX10 application under VS 2008 and
> Vista x64 for a school project.  I have done the following things:
> 1) Installed Mono via the download link above.
> 2) Acquired the source from SVN and compiled the MSVC directories to obtain
> new versions of mono.lib and mono.dll

Wrong. Step one already provides everything you need to embed mono.
There is no need to mess with compiling mono yourself.

The only missing file might be mono.lib, the import library
of mono.dll, but you can create this file with VS' lib.exe
tool from msvc/mono.def (from mono's sources):

cd msvc
lib /def:mono.def /out:mono.lib /machine:x86

> 3) Replaced those files in the standard Mono-2.2 installation directories. 
> (This might've been a bad idea)

That gives bonus points ;-)


More information about the Mono-list mailing list