created blank Console app:
namespace ClientUI
{
class Program
{
static async void Main(string[] args)
{
await Task.Delay(1000);
}
}
}
The compiler throws:
Severity Code Description Project File Line Suppression State Error CS5001 Program does not contain a static 'Main' method suitable for an entry point
I read this article https://www.meziantou.net/2017/08/24/4-ways-to-enable-the-latest-c-features async Main is a C# 7.1 feature, ok, so I go to project properties >> Build >> Advanced and select Language version: C# 7.1
Trying to build again, but the error remains.