Edit

Share via


Compiler Error CS1555

Could not find 'class' specified for Main method

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

Note

This warning is only reported during explicit Build or Rebuild operations. It does not appear during typing in the IDE as part of IntelliSense diagnostics. This means that if you fix the warning by using the field or removing it, the warning might persist in the error list until you build or rebuild the project again.