I’ve installed the latest version of VS MonoGame. Then i started VS2015, but there wasn’t MonoGame project template in Create a new project window, and i chose WinForms template. I added a reference to MonoGame (it was in the list of known installed frameworks), removed Form1 and copied some base project’s code from my old XNA game
static class Program
{
[STAThread]
static void Main()
{
using (var game = new TestGame())
{
game.Run();
}
}
}
internal class TestGame : Game
{
GraphicsDeviceManager graphics;
public TestGame()
{
Window.AllowUserResizing = true;
graphics = new GraphicsDeviceManager(this);
Content.RootDirectory = "Content";
graphics.PreferredBackBufferWidth = 1024;
graphics.PreferredBackBufferHeight = 600;
}
}
but it gets a NullReferenceException on this line:
public TestGame()
by the way, how to install MonoGame to another disk? there isn’t any “choose installation path” in the installator
and where i can find examples that the installator was going to install? i don’t see those in the MonoGame folder