Mono - Could not find a 'Sub Main' in ''

Posted by lampej on Stack Overflow See other posts from Stack Overflow or by lampej
Published on 2010-04-26T22:02:33Z Indexed on 2010/04/26 22:03 UTC
Read the original article Hit count: 219

Filed under:
|
|

I started a new solution (with multiple projects) and am trying to get it to build. Initially I was getting an internal compiler error and thought maybe it had to do with MySql, so I removed all references to MySql. Now I am getting the error "Could not find a 'Sub Main' in ''". I have made sure that all of my projects have a Main subroutine like this:

Public Shared Sub Main()
End Sub

2 out of the 7 projects will compile. I don't know what makes these projects different from the others, and the error message isn't very helpful. Any experience with this one?

© Stack Overflow or respective owner

Related posts about mono

Related posts about .NET