我可以将 mono64 与 Visual Studio for Mac 一起使用吗?

Can I use mono64 with Visual Studio for Mac?(我可以将 mono64 与 Visual Studio for Mac 一起使用吗?)
本文介绍了我可以将 mono64 与 Visual Studio for Mac 一起使用吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 Mono 开发的新手(但不是 .NET 开发) - 已下载 Visual Studio for Mac 并尝试从 Alea GPU 运行示例解决方案.它抱怨它需要 mono64,但我看不到像在 Windows 中那样选择 64 位架构的选项,而且谷歌搜索这个问题并没有找到我能理解的答案.我可以在 VS for Mac 中使用 mono64 吗?如果可以,如何使用?

I'm new to Mono development (but not .NET development) - got as far as downloading Visual Studio for Mac and trying to run a sample solution from Alea GPU. It complains that it needs mono64, but I see no option for selecting 64 bit architecture like I would in Windows, and Googling the issue has not turned up an answer I can make sense of. Can I use mono64 in VS for Mac and if so, how?

推荐答案

由于你是在VS4M中运行,所以你需要设置你正在使用的运行配置的架构.

Since you are running within VS4M, you need to set the architecture of the run configuration that you are using.

以我编写的 ML(基于 Alea)程序为例:

Using an ML (Alea-based) program that I wrote as an example:

  • 打开项目选项并转到运行/配置/默认:

  • 打开 Mono 运行时设置 并将 Arch 设置为 64 位:
  • Open the Mono runtime settings and set the Arch to 64-bit:

Mono 现在默认是 64 位的,所以你可以运行:

Mono is 64-bit by default now, so you can run either:

/Library/Frameworks/Mono.framework/Commands/mono MovieMadnessComputeBoxOffice-Alea.exe

/Library/Frameworks/Mono.framework/Commands/mono64 MovieMadnessComputeBoxOffice-Alea.exe

注意:在旧版本的 Mono 上,您必须使用 mono --arch=64 ....如果您需要 arch32,则使用 mono32,但 CUDA 只有 64 个库,因此使用 Alea 不需要.

Note: On older version of Mono you would have to have used mono --arch=64 .... If you need arch32, you use mono32, but CUDA only has 64 libs so this would not be needed for Alea usage.

这篇关于我可以将 mono64 与 Visual Studio for Mac 一起使用吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

DispatcherQueue null when trying to update Ui property in ViewModel(尝试更新ViewModel中的Ui属性时DispatcherQueue为空)
Drawing over all windows on multiple monitors(在多个监视器上绘制所有窗口)
Programmatically show the desktop(以编程方式显示桌面)
c# Generic Setlt;Tgt; implementation to access objects by type(按类型访问对象的C#泛型集实现)
InvalidOperationException When using Context Injection in ASP.Net Core(在ASP.NET核心中使用上下文注入时发生InvalidOperationException)
LINQ many-to-many relationship, how to write a correct WHERE clause?(LINQ多对多关系,如何写一个正确的WHERE子句?)