Were you able to run this after the above fix? I'm also looking same as above solution. But I'm getting different issue as below The request body must contain the following parameter: 'client_assertion' or 'client_secret'. Here I see, PublicClientApplicationBuilder class does not contain a definition for WithClientSecret.
Is I'm I missing anything else.
I'm just looking for console app to upload files to OneDrive.
Thanks, Karuna