Can I use mono64 with Visual Studio for Mac?

。_饼干妹妹 提交于 2019-12-02 05:59:41

问题


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?


回答1:


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

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

Within VS4M:

  • Open the Project Options and go to Run / Configuration / Default:

  • Open the Mono runtime settings and set the Arch to 64-bit:

From the cmd-line:

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

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

or

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

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.




回答2:


I got mine to work by setting the Project -> Options to run with 32 bit mono. it all works, see pics.



来源:https://stackoverflow.com/questions/45873340/can-i-use-mono64-with-visual-studio-for-mac

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!