[Mono-dev] GAC on Mac

Vassil Vassilev v.g.vassilev at gmail.com
Mon Sep 16 18:29:13 UTC 2013


Hi,
   Sorry if this is the wrong mailing list.
   I am trying to compile a simple cs file with using gtk-sharp library. 
It looks like that the compiler doesn't look at the 'right' place. Any 
ideas are very welcome, because I am stuck with that for quite a while...
   I have this problem:
cat /tmp/t.cs
using Gtk;

namespace Test {
   class Program {
     void f() {
       Gtk.Label l = new Gtk.Label("aa");
     }
   }
}

/usr/bin/dmcs /t:library /out:SolidV.dll /platform:anycpu /debug:full 
/debug+ /optimize- /sdk:4  /tmp/t.cs /reference:System.dll 
/reference:gtk-sharp.dll
error CS0006: Metadata file `gtk-sharp.dll' could not be found
Compilation failed: 1 error(s), 0 warnings

find /Library/Frameworks/Mono.framework/ -name gtk-sharp.dll
/Library/Frameworks/Mono.framework//Versions/2.10.12/lib/mono/gac/gtk-sharp/2.12.0.0__35e10195dab3c99f/gtk-sharp.dll
/Library/Frameworks/Mono.framework//Versions/2.10.12/lib/mono/gtk-sharp-2.0/gtk-sharp.dll
/Library/Frameworks/Mono.framework//Versions/2.10.9/lib/mono/gac/gtk-sharp/2.12.0.0__35e10195dab3c99f/gtk-sharp.dll
/Library/Frameworks/Mono.framework//Versions/2.10.9/lib/mono/gtk-sharp-2.0/gtk-sharp.dll
/Library/Frameworks/Mono.framework//Versions/3.2.0/lib/mono/gac/gtk-sharp/2.12.0.0__35e10195dab3c99f/gtk-sharp.dll
/Library/Frameworks/Mono.framework//Versions/3.2.0/lib/mono/gtk-sharp-2.0/gtk-sharp.dll

gacutil -l gtk-sharp
The following assemblies are installed into the GAC:
gtk-sharp, Version=2.12.0.0, Culture=neutral, 
PublicKeyToken=35e10195dab3c99f
Number of items = 1

uname -a
Darwin vvBook.local 11.4.2 Darwin Kernel Version 11.4.2: Thu Aug 23 
16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64

/usr/bin/dmcs /t:library /out:SolidV.dll /platform:anycpu /debug:full 
/debug+ /optimize- /sdk:4  /tmp/t.cs /reference:System.dll 
/reference:gtk-sharp.dll --mcs-debug 10
Probing assembly location 
`/Users/vvassilev/workspace/my/solid/Tools/DataMorphose/build/mscorlib.dll'
Probing assembly location 
`/Library/Frameworks/Mono.framework/Versions/3.2.0/lib/mono/4.0/mscorlib.dll'
Loading assembly `mscorlib.dll'
Probing assembly location 
`/Users/vvassilev/workspace/my/solid/Tools/DataMorphose/build/System.dll'
Probing assembly location 
`/Library/Frameworks/Mono.framework/Versions/3.2.0/lib/mono/4.0/System.dll'
Loading assembly `System.dll'
Probing assembly location 
`/Users/vvassilev/workspace/my/solid/Tools/DataMorphose/build/gtk-sharp.dll'
Probing assembly location 
`/Library/Frameworks/Mono.framework/Versions/3.2.0/lib/mono/4.0/gtk-sharp.dll'
error CS0006: Metadata file `gtk-sharp.dll' could not be found
Probing assembly location 
`/Users/vvassilev/workspace/my/solid/Tools/DataMorphose/build/System.dll'
Probing assembly location 
`/Library/Frameworks/Mono.framework/Versions/3.2.0/lib/mono/4.0/System.dll'
Probing assembly location 
`/Users/vvassilev/workspace/my/solid/Tools/DataMorphose/build/System.Xml.dll'
Probing assembly location 
`/Library/Frameworks/Mono.framework/Versions/3.2.0/lib/mono/4.0/System.Xml.dll'
Loading assembly `System.Xml.dll'
Probing assembly location 
`/Users/vvassilev/workspace/my/solid/Tools/DataMorphose/build/System.Core.dll'
Probing assembly location 
`/Library/Frameworks/Mono.framework/Versions/3.2.0/lib/mono/4.0/System.Core.dll'
Loading assembly `System.Core.dll'
Probing assembly location 
`/Users/vvassilev/workspace/my/solid/Tools/DataMorphose/build/Microsoft.CSharp.dll'
Probing assembly location 
`/Library/Frameworks/Mono.framework/Versions/3.2.0/lib/mono/4.0/Microsoft.CSharp.dll'
Loading assembly `Microsoft.CSharp.dll'
Compilation failed: 1 error(s), 0 warnings

Cheers,
Vassil


More information about the Mono-devel-list mailing list