使用Xamarin Studio运行新的MonoGame项目 [英] Running new MonoGame project with Xamarin Studio

查看:105
本文介绍了使用Xamarin Studio运行新的MonoGame项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用MonoGame为mac启动一个新项目.我已经安装了我认为需要的所有东西,但是当我运行新项目时(应该弹出单游戏徽标),我在输出中得到了这两行:

I am trying to start a new project for mac using MonoGame. I have installed everything I believe is required but when I run the new project (mono game logo should pop up) I get these two lines in the output:

已加载的程序集:/Users/Kristin/Projects/Test/Test/bin/Debug/Test.app/Contents/MonoBundle/Test.exe 加载的程序集:/Users/Kristin/Projects/Test/Test/bin/Debug/Test.app/Contents/MonoBundle/MonoMac.dll [外部]

Loaded assembly: /Users/Kristin/Projects/Test/Test/bin/Debug/Test.app/Contents/MonoBundle/Test.exe Loaded assembly: /Users/Kristin/Projects/Test/Test/bin/Debug/Test.app/Contents/MonoBundle/MonoMac.dll [External]

,启动的新应用程序挂起,而没有弹出窗口.我尝试按照此页面上的步骤操作:

and the new application that is started hangs without popping up a window. I tried following the steps on this page: http://jamie.ly/wordpress/programming/software/setting-up-a-monogame-mac-application-with-xamarin-studio/

但是似乎没有什么可以解决我的问题.有什么想法吗?

but nothing seems to be solving my problem. Any ideas?

推荐答案

我知道它已经很晚了,但我只是参加了单机游戏并找到了解决方案: 要使其正常工作,请执行以下步骤:

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

  • http://xamarin.com/studio
  • 安装最新的xamarin Studio
  • 接下来从 https://monogame.codeplex.com/releases/view/102870
  • 下载monogame文件
  • 在Mac上选择xamarin版本

  • 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

下一步,通过打开xamarin Studio安装模板.接下来,单击顶部的Mac菜单"Xamarin Studio" Addin Manger,然后选择从文件安装",然后选择已下载的文件...

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...

到目前为止还不错,但是您的png文件不会从此处加载...因此请按照以下步骤解决此问题: 从monogame访问git页面并下载: https://github.com/mono/MonoGame

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

下载并解压缩zip文件后,进入文件夹并使用xamarin Studio打开以下文件 MonoGame.Framework.MacOS.sln

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

现在Xamarin工作室应该开放并包括2个项目:Lidgren. ...和Monogame.Framework.MacOS

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

我们现在快完成了:

  • 在"Xamarin Studio内部项目树中的文件夹"中查找引用,然后在Monogame上单击鼠标右键以删除引用...
  • 现在,您需要右键单击参考来添加新参考.
  • 访问.Net程序集,然后从MonoGame.Framework/bin/MacOS/Release/-文件夹中添加文件(确保已添加所有文件)

现在的最后一步是在Xamarin studio中扩展Content文件夹,并在logo.png文件上单击鼠标左键. 在IDE的左侧,您可以找到属性".在属性中,将第3条从顶部更改为内容,而不是无. 如果您现在运行该模板,则应加载图形而没有任何问题:D

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!!!!

享受 问候 舒达(Schreda)

ENJOY regards Schreda

这篇关于使用Xamarin Studio运行新的MonoGame项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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