C# Error CS1556 – ‘{0}’ specified for Main method must be a non-generic class, record, struct, or interface

C# Error

CS1556 – ‘{0}’ specified for Main method must be a non-generic class, record, struct, or interface

Reason for the Error & Solution

‘construct’ specified for Main method must be a valid class or struct

The compiler option was passed an identifier that was not a class name.