Xamarin Studio 4.0.10 (ビルド 5) で MonoGame を使用して簡単なプログラムを作成しようとしています。しかし、メソッドを使用していくつかのテクスチャを読み込もうとすると、メッセージとともにContent.Load
例外が発生しますSystem.MissingMethodException
Method not found: 'MonoMac.AppKit.NSImage.AsCGImage'.
私が使用している実際のコード行は次のとおりです。
protected override void LoadContent()
{
//some stuff here
Texture2D freezeTexts = new Texture2D[5];
for (int i = 0; i < 5; i++) {
freezeTexts[i] = Content.Load<Texture2D>("freeze"+i); // exception here
}
//some other stuff here
}
私はいくつかのグーグルを行い、Xamarin Studioがまだ実装していないいくつかのAPIの変更が原因であることがわかりました(少なくともそれは私が理解したものです)。私の質問は次のとおりです。この問題を解決するにはどうすればよいですか?