Fix: Error CS5001 Program does not contain a static ‘Main’ method suitable for an entry point

 

Starting with version of ASP.NET 5 RC1, the statup.cs must have a static main, see:

 

http://www.talkingdotnet.com/static-void-main-in-asp-net-5-startup-cs/

 

After I added the main method, the error was fixed.

Leave a Reply

Your email address will not be published. Required fields are marked *