我已按照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
答案 0 :(得分:1)
您可以使用此处http://monogame.codeplex.com/releases/view/102870
中提供的安装程序进行安装然后从Visual Studio
创建一个新项目答案 1 :(得分:1)
我通过下载monodevelop-monogame
依赖项来解决问题。