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

查看:31
本文介绍了使用 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]

并且启动的新应用程序挂起而不弹出窗口.我尝试按照此页面上的步骤操作:http://jamie.ly/wordpress/programming/software/setting-up-a-monogame-mac-application-with-xamarin-studio/

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?

推荐答案

我知道为时已晚,但我只是联合 monogame 并找到了解决方案:要使其工作,请按照以下步骤操作:

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

我们现在差不多完成了:

We are now almost done:

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

现在的最后一步是在 Xamarin Studio 中展开您的内容文件夹,然后左键单击 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!!!!

享受问候施瑞达

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

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