2

我是 Xamarin Studio 和 mdtool 的新手,因此为这个菜鸟问题道歉,但我完全坚持这一点,我的谷歌搜索没有找到我的问题的答案。

基本上我们的解决方案在 Xamarin Studio 中完美构建,现在我需要从命令行运行它,以便将其放入我们的标准构建系统中,但我似乎在设置或配置中遗漏了一些东西,因为它抱怨它无法找到的事实已注册的 GTK# 安装。

我已经安装了包含 GTK# 2.12.11 的 Windows 2.10.9 的 Mono,但我还安装了独立的 GTK# 2.12.20,因为我们的开发人员说他已经安装了它,并且它全部安装在 Windows Server 2012 的 VM 中我测试这一切的那一刻。

这是我为构建它而运行的命令以及它响应的错误:

mdtool build '--configuration:Release' test_mono.sln

ERROR [2013-05-24 15:56:25Z]: Did not find registered GTK# installation
MonoDevelop Build Tool
System.TypeInitializationException: The type initializer for 'Mono.Unix.Native.Stdlib' threw an exception. ---> System.BadImageFormatException: An attempt was made to load a program with an incorrect
format. (Exception from HRESULT: 0x8007000B)
   at Mono.Unix.Native.Stdlib.GetDefaultSignal()
   at Mono.Unix.Native.Stdlib..cctor()
   --- End of inner exception stack trace ---
   at Mono.Unix.Native.Stdlib.free(IntPtr ptr)
   at Mono.Unix.Catalog.MarshalStrings(String s1, IntPtr& p1, String s2, IntPtr& p2, String s3, IntPtr& p3)
   at Mono.Unix.Catalog.Init(String package, String localedir)
   at MonoDevelop.Core.GettextCatalog..cctor()
The type initializer for 'Mono.Unix.Native.Stdlib' threw an exception.

任何想法我做错了什么或忽略了什么?

4

0 回答 0