Running new MonoGame project with Xamarin Studio

*爱你&永不变心* 提交于 2019-11-28 21:44:03

I know its late but I just joint monogame and found the solution: To make it work follow the following steps:

  • Install the latest xamarin studio from http://xamarin.com/studio
  • Next download the monogame files from https://monogame.codeplex.com/releases/view/102870
  • choose the xamarin version on mac

  • Next install the templates by opening xamarin studio. Next click on the top Mac menu "Xamarin Studio" Addin Manger and choose install from file and select your donwloaded file...

  • so far so good but your png files will not be loaded from here... so solve this issue follow the next steps: visit the git page from monogame and download it: https://github.com/mono/MonoGame

  • after Downloading and unpacking the zip file go into the folder and look open the following file by using xamarin studio MonoGame.Framework.MacOS.sln

  • Now Xamarin studio should open up and include 2 Projects: Lidgren. ... and Monogame.Framework.MacOS

  • on the top of Xamarin studio (besides the play button you should see Debug click on it and change it to Release
  • now do a right click on the Monogame.Framework.MacOS project and build it new
  • This should be done without any errors but you may get warnings... we do not pay attention on them :D
  • next do you need to go again to the downloaded Monogame folder from where you opened the MonoGame.Framework.MacOS.sln project.
  • But this time you need to dive more deep into the folder structure: look for the following folder --> MonoGame.Framework/bin/MacOS/Release
  • the files in the release folder are now your new libraries...
  • You can copy this libraries where ever you want but you should know where they are because you need to add them to your new monogame project.
  • Next open up Xamarin studio and create a new Monogame project by using the already installed templates...
  • Choose the Monogame Mac Application Template

We are now almost done:

  • Look for the reference "folder in the project tree inside of Xamarin studio" and do a right click on Monogame to delete the reference...
  • Now you need to add new references by right click on reference.
  • Access the .Net-Assemblies and add your files from the MonoGame.Framework/bin/MacOS/Release/- folder (make sure that you add all of them)

The final step now is to expand your Content folder in Xamarin studio and do a left click on the logo.png file. on the left side of the IDE you can find Properties. In the properties change 3rd from top to content instead of none. If you run now the template the graphic should be loaded without any problems :D

I TESTED IT ON SEVERAL MACHINES IT WORKS THAT WAY!!!!

ENJOY regards Schreda

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