我可以在Mac的Visual Studio中使用mono64吗? [英] Can I use mono64 with Visual Studio for Mac?

查看:560
本文介绍了我可以在Mac的Visual Studio中使用mono64吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Mono开发(不是.NET开发)的新手-可以下载Mac的Visual Studio并尝试从Alea GPU运行示例解决方案.它抱怨说它需要mono64,但是我看不到像Windows中那样选择64位体系结构的选择,而且谷歌搜索这个问题还没有找到我可以理解的答案.我可以在Mac的VS中使用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:

  • 打开项目选项"并转到Run / Configuration / Default:

  • 打开Mono runtime settings并将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.

这篇关于我可以在Mac的Visual Studio中使用mono64吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆