与报告的here相同的问题:
C:\Users\xx\Documents\MonoProject>mcs hello_gtk.cs -pkg:gtk-sharp-2.0
error CS2001: Source file `Files' could not be found
error CS2001: Source file `(x86)/Mono/lib/gtk-sharp-2.0/pango-sharp.dll' could not be found
error CS2001: Source file `(x86)/Mono/lib/gtk-sharp-2.0/atk-sharp.dll' could not be found
error CS2001: Source file `(x86)/Mono/lib/gtk-sharp-2.0/gdk-sharp.dll' could not be found
error CS2001: Source file `(x86)/Mono/lib/gtk-sharp-2.0/gtk-sharp.dll' could not be found
error CS2001: Source file `(x86)/Mono/lib/gtk-sharp-2.0/glib-sharp.dll' could not be found
Compilation failed: 6 error(s), 0 warnings
我使用mono-3.12.0-gtksharp-2.12.26-win32-0.msi,OS:Win7。
所有答案都没有生效。而且我没有机会更改安装文件夹。
它也无法安装XamarinStudio-5.7.0.660-0.msi,错误信息:
Gtk# 2.12.22 or greater must be installed
实际上应该已经安装了Gtk#2.12.26。