1

我已按照此处的安装指南进行操作,但似乎对我不起作用。这是我运行程序时的异常消息:

System.MissingMethodException has been thrown

Method not found: 'OpenTK.NativeWindow.set_CursorVisible'.

System.MissingMethodException: Method not found: 'OpenTK.NativeWindow.set_CursorVisible'.
 at Microsoft.Xna.Framework.GamePlatform.set_IsMouseVisible (Boolean value) [0x00000] in <filename unknown>:0
 at Microsoft.Xna.Framework.OpenTKGamePlatform..ctor (Microsoft.Xna.Framework.Game game) [0x00000] in <filename unknown>:0
 at Microsoft.Xna.Framework.GamePlatform.Create (Microsoft.Xna.Framework.Game game) [0x00000] in <filename unknown>:0
 at Microsoft.Xna.Framework.Game..ctor () [0x00000] in <filename unknown>:0
 at testing.Game1..ctor () [0x00000] in <filename unknown>:0
 at testing.Program.Main () [0x00000] in /home/user/testing/testing/Program.cs:20
4

2 回答 2

1

您可以使用此处提供的安装程序进行安装http://monogame.codeplex.com/releases/view/102870

然后从 Visual Studio 创建一个新项目

于 2013-04-02T19:19:20.113 回答
1

我通过下载monodevelop-monogame依赖项解决了这个问题。

于 2013-04-03T11:23:21.410 回答