C# Error CS1555 – Could not find ‘{0}’ specified for Main method

C# Error

CS1555 – Could not find ‘{0}’ specified for Main method

Reason for the Error & Solution

Could not find ‘class’ specified for Main method

A class was specified to the compiler option, but the class name was not found in the source code.