i'm learning how to create a c# http client. i'm following microsoft docs, but i can't compile the code, beacuse i get the following error: "The program doesn't contain a method static Main as an entry point. This is the code:
namespace WebAPIClient
{
class Program
{
private static readonly HttpClient client = new HttpClient();
static async Task Main(string[] args)
{
//...
}
}
}
I wasn't able to find something useful on internet. Thank you for your help