I am trying to implement the example provided in the Microsoft website, getting below error can anyone please help me with this.
I am trying to implement sample code provided in App-only authentication, I am using VS 2016 console application.
static async System.Threading.Tasks.Task Main(string[] args)
{
// Using Microsoft.Identity.Client 4.22.0
var cca = ConfidentialClientApplicationBuilder
.Create(ConfigurationManager.AppSettings["appId"])
.WithClientSecret(ConfigurationManager.AppSettings["clientSecret"])
.WithTenantId(ConfigurationManager.AppSettings["tenantId"])
.Build();
Error :-
Severity Code Description Project File Line Suppression State Error CS5001 Program does not contain a static 'Main' method suitable for an entry point
Please let me know how to resolve the error.
Regards, Ramesh.