MonoMac应用程序捆绑包中捆绑的Mono运行时出错

MonoMac应用程序捆绑包中捆绑的Mono运行时出错,mono,installation,monomac,.app,Mono,Installation,Monomac,.app,我已经打包了我的第一个MonoMac应用程序!万岁 我使用生成的.pkg在一个测试系统上安装了这个应用程序,然后打开了它……结果什么也没发生。我查看了Console.app并在其中看到以下内容: 8/15/11 9:16:22 PM [0x0-0xe86e86].net.johnluetke.MyApp[31629] Unhandled Exception: System.Reflection.ReflectionTypeLoadException: The classes in the m

我已经打包了我的第一个MonoMac应用程序!万岁

我使用生成的.pkg在一个测试系统上安装了这个应用程序,然后打开了它……结果什么也没发生。我查看了Console.app并在其中看到以下内容:

8/15/11 9:16:22 PM  [0x0-0xe86e86].net.johnluetke.MyApp[31629]  Unhandled Exception: System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.
8/15/11 9:16:22 PM  [0x0-0xe86e86].net.johnluetke.MyApp[31629]    at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (System.Reflection.Assembly,bool)
8/15/11 9:16:22 PM  [0x0-0xe86e86].net.johnluetke.MyApp[31629]    at System.Reflection.Assembly.GetTypes () [0x00000] in <filename unknown>:0 
8/15/11 9:16:22 PM  [0x0-0xe86e86].net.johnluetke.MyApp[31629]    at MonoMac.ObjCRuntime.Runtime.RegisterAssembly (System.Reflection.Assembly a) [0x00000] in <filename unknown>:0 
8/15/11 9:16:22 PM  [0x0-0xe86e86].net.johnluetke.MyApp[31629]    at MonoMac.AppKit.NSApplication.Init () [0x00000] in <filename unknown>:0 
8/15/11 9:16:22 PM  [0x0-0xe86e86].net.johnluetke.MyApp[31629]    at MyApp.UI.OSX.MainClass.Main (System.String[] args) [0x00000] in <filename unknown>:0 
8/15/11 9:16:22 PM  com.apple.launchd.peruser.501[668]  ([0x0-0xe86e86].net.johnluetke.MyApp[31629]) Exited with exit code: 1
NSApplication类似乎有一个运行时错误。无论是从没有安装Mono的测试系统运行应用程序捆绑包,还是从安装了Mono的开发系统运行应用程序捆绑包,我都看到了相同的行为,但当我从没有包含Mono的捆绑包运行应用程序时,它运行得很好

同样的行为依然存在:

不链接任何程序集 如果我跳过创建一个.pkg,只使用包含Mono的.app包进行测试。
我使用的是MD 2.6-rc2、Mono 2.10.5和MonoMac 2.6.0.61,我收回了这一点。它不再出现在我的开发系统上,而是出现在我从未安装过Mono的测试系统上。它不再出现在我的开发系统上,而是出现在我从未安装过Mono的测试系统上。