[Mono-osx] where is System.Windows.Forms.dll on OS X ??

Brendan Simon (eTRIX) brendan.simon at etrix.com.au
Fri Sep 21 09:48:59 UTC 2012


I have downloaded a sample app which has a Linux Makefile with the
following.

    $(CS) -target:library -out:$@ $(Sequencer_files)
-r:/usr/lib/mono/2.0/System.Windows.Forms.dll

I get the following error when running Make.

    error CS0006: Metadata file
`/usr/lib/mono/2.0/System.Windows.Forms.dll' could not be found

So the Makefile doesn't cater for OS X installs.  I searched my
filesystem and think these are the most likely files I should reference.

   
/Library/Frameworks/Mono.framework/Versions/2.11.4/lib/mono/2.0/System.Windows.Forms.dll
   
/Library/Frameworks/Mono.framework/Versions/2.11.4/lib/mono/4.0/System.Windows.Forms.dll
   
/Library/Frameworks/Mono.framework/Versions/2.11.4/lib/mono/4.5/System.Windows.Forms.dll

Are these the correct library DLLs to reference ??

Should there be symlinks in /usr/local/lib when Mono is installed so
that standard POSIX Makefiles are more portable ??

Thanks -- Brendan.



More information about the Mono-osx mailing list