I copied below code from this link.But when I am compiling this code I am getting an entry point cannot be marked with the \'async\' modifier. How can I m
Wrap your async code in MainAsync() - which is an async function then call MainAsync().GetAwaiter().GetResult();
MainAsync()
MainAsync().GetAwaiter().GetResult();