The file '{0}' does not have any class definitions in it. Add a class definition. If you have verified that there is at least ...

The file '{0}' does not have any class definitions in it.  Add a class definition.  If you have verified that there is at least one class definition in the file and you still receive this message, make sure the file can be compiled in your project and then try again.