我正在尝试使用 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'
Run Code Online (Sandbox Code Playgroud)
感谢您的帮助,我到处找,但不知道出了什么问题。
小智 5
存储库中的 Mono 版本 (2.6.7) 只能运行 .NET 3.5 应用程序,而您的是 .NET 4。要运行您的应用程序,您可能需要 Mono 2.8 或更好的 2.10.2。我不知道将这些框架放入官方存储库的计划是什么(我确实希望下一个 ubuntu 但我不这么认为)。无论如何,搜索 mono 2.10.2,您将能够找到一些指南来安装能够运行 .NET 4 应用程序的并行单声道环境:)
我希望能有所帮助,马特。
| 归档时间: |
|
| 查看次数: |
19450 次 |
| 最近记录: |