MonoGame Samples not compiling on Mountain Lion

故事扮演 提交于 2019-12-22 18:38:37

问题


So I installed MonoFramework, MonoDevelop and MonoMac and downloaded the latest version of MonoGame. I tried compiling the samples but they all fail with the same error Parsing error of #error Unknown platform.

The problem seems to be that for some reason #if MONOMAC and #elif MONOMAC are being ignored.

If I remove the Windows, XBOX and Linux related code and get rid of the #if MONOMAC the code compiles and executes. Has there been a change and should I use something else instead of MONOMAC in my platform check (i tried with __APPLE__ and MAC but neither worked).

Thank you in advance.


回答1:


It should just work. If you install the MonoGame templates, does it allow you to create MonoGame project for MacOS?



来源:https://stackoverflow.com/questions/11727185/monogame-samples-not-compiling-on-mountain-lion

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