I am trying to port my Asp.Net WebApi project, based on the Onion Architecture design approach, over to Asp.Net Core. However, when I build my class libraries, the compiler
To avoid the error of "Program does not contain a static 'Main' method suitable for an entry point" in class library, Remove emitEntryPoint from buildOptions-
"buildOptions": {
"emitEntryPoint": true
},
emitEntryPoint tells the compiler whether to create a Console Application or a Library. For more info refer this post