static void Main() { using (var game = new MyGame()) { game.ConfigureServices(); var graphicsDeviceService = GameServices.GetService <IGraphicsDeviceService>(); game.Services.AddService(graphicsDeviceService.GetType(), graphicsDeviceService); game.DesignEngine = GameServices.GetService <DesignEngine>(); game.Run(); } }