Project error

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:

  1. You do not have a class called ‘Game1’ that inherits from ‘Game’ anywhere in your program
  2. You might have renamed the ‘Game1’ class but not changed the name in the entry point

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