使用monodevelop的Monogame缺少方法异常

时间:2013-03-31 12:59:51

标签: mono monodevelop opentk monogame

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

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

2 个答案:

答案 0 :(得分:1)

您可以使用此处http://monogame.codeplex.com/releases/view/102870

中提供的安装程序进行安装

然后从Visual Studio

创建一个新项目

答案 1 :(得分:1)

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