When i try to run my project i get this error
|Error|CS0246|The type or namespace name 'Game1' could not be found (are you missing a using directive or an assembly reference?)
When i try to run my project i get this error
|Error|CS0246|The type or namespace name 'Game1' could not be found (are you missing a using directive or an assembly reference?)
Could you show the code from the project? This is the default Monogame project entry point:
using System;
namespace Test
{
public static class Program
{
[STAThread]
static void Main()
{
using (var game = new Game1())
game.Run();
}
}
}
‘Game1’ must be a class somewhere in your program that inherits from the Monogame ‘Game’ Class. Some potential reasons for the error include:
I hope this helps. Unfortunately without being able to see some code there’s not much more I can do.
Thank you it works now