单声道,无法打开可执行文件

我试图用Mono打开一个简单的可执行文件,因为Wine告诉我为.net应用程序安装Mono,这是我得到的错误

mono yt.exe ** Message: Unknown heap type: #GUlD ** Message: Unknown heap type: #Blop ** (yt.exe:2508): WARNING **: The following assembly referenced from /home/austin/Downloads/yt.exe could not be loaded: Assembly: System.Windows.Forms (assemblyref_index=0) Version: 4.0.0.0 Public Key: b77a5c561934e089 The assembly was not found in the Global Assembly Cache, a path listed in the MONO_PATH environment variable, or in the location of the executing assembly (/home/austin/Downloads/). ** (yt.exe:2508): WARNING **: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. ** (yt.exe:2508): WARNING **: Missing method EnableVisualStyles in assembly /home/austin/Downloads/yt.exe, type System.Windows.Forms.Application Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' 

感谢您的帮助,我到处寻找,无法弄清楚出了什么问题。

存储库中存在的Mono版本(2.6.7)只能运行.NET 3.5应用程序,而您的运行版本是.NET 4.要运行您的应用程序,您可能需要Mono 2.8或更好的2.10.2。 我不知道将这些框架放在官方存储库中的计划是什么(我希望下一个ubuntu,但我不这么认为)。 无论如何,谷歌搜索单声道2.10.2,你将能够找到一些指南来安装能够运行.NET 4应用程序的并行单声道环境:)

我希望能有所帮助,Mat。

警告**:缺少方法EnableVisualStyles

尝试安装mono-complete例如:

 sudo apt-get install mono-complete 

来源: 无法在GitHub上运行Ubuntu


警告**:无法加载文件或程序集’System.Windows.Forms

尝试在synaptic中安装libmono-winforms1.0-cil和/或libmono-winforms2.0-cil包以使用System.Windows.Forms

来源: 线程:Ubuntu的单声道错误 。


还要确保安装了.NET Framework ,例如:

 apt-get install winetricks winetricks dotnet46