The .net core3 program does not contain a static "Main" method suitable for entry points

Use await in the Main method to call an asynchronous method and report an error

static async void Main(string[] args)

Severity code description The project file line prohibits the display status
error CS5001 The program does not contain a static "Main" method suitable for the entry point QuartzConsoleApp D: \ Workspaces \ Demos \ QuartzConsoleApp \ QuartzConsoleApp \ CSC 1 activity

change into: 

 static async Task Main(string[] args)

The problem is solved after compiling.

 

Guess you like

Origin www.cnblogs.com/z415353144/p/12708748.html
Recommended