MonoGame |
This topic contains the following sections:
Mono is an open source implementation of Microsoft’s .NET Framework. It makes the .NET framework available under Linux and Mac OS X.
Mono implementations for Android (Xamarin.Android, formerly known as Mono for Android or MonoDroid) and iOS (Xamarin.iOS, formerly known as MonoTouch) are provided by Xamarin. To develop Mono projects for Android or iOS, you need a Xamarin.iOS or Xamarin.Android license from Xamarin.
MonoGame is a cross-platform, open source implementation of the Microsoft XNA Framework. See the MonoGame Website for more information.
Note |
---|
When the DigitalRune Engine user documentation or class library reference refers to "XNA", it usually refers to both XNA and MonoGame. Many parts of the documentation were written before MonoGame support was added - or before MonoGame even existed. |
DigitalRune libraries are built against a forked version of MonoGame. The source code repository is publicly available here: https://github.com/DigitalRune/MonoGame
MonoGame uses SharpDX on Windows, Windows Store and Windows Phone.
To get better debug information for graphics and SharpDX problems, you can enable a debug graphics device:
Microsoft.Xna.Framework.Graphics.GraphicsAdapter.UseDebugDevice = true;
During debugging SharpDX will print helpful warning and error messages to the Visual Studio Output window, but only if native code debugging is enabled:
In some project types you have to choose between "Managed Only" or "Native Only". This means, you will have to switch to "Managed Only" if you want to debug your own code. You have to switch to "Native Only" to see SharpDX messages.
In the Debug tab check the "Enable native debugging" option (Visual Studio | Project | Properties | Debug | Enable native debugging).
In some project types you have to choose between "Managed Only" or "Native Only". This means, you will have to switch to "Managed Only" if you want to debug your own code. You have to switch to "Native Only" to see SharpDX messages.
Sometimes when debugging a Windows Store or Windows Phone project, the project does not work and the Visual Studio debugger does not provide any helpful exception messages. For example, a Windows Phone app is started and only a black screen is shown on the phone. This usually means that a problem happened, an exception was thrown but the debugger didn't break at the exception. To get more info about the exception you can try following: