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?
Visual Studio Code is the first code editor, and first cross-platform development tool - supporting OSX, Linux, and Windows - in the Visual Studio family. At its heart, Visual Studio Code features a powerful, fast code editor great for day-to-day use. I am new to Mac and to visual studio for Mac, have been using VS on PC for years. I for the life of in Visual Studio for Mac visual studio for mac New. Fiona Niu[MSFT] commented 10 hours ago 1 Votes. Please make VS for Mac more like on Windows Visual Studio on.
SushiHangover2 Answers
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:
or
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.
Visual Studio For Mac
Visual Studio For Mac Free
I got mine to work by setting the Project -> Options to run with 32 bit mono.it all works, see pics.