question

Jramos avatar image
0 Votes"
Jramos asked ·

PublicClientApplication it's an ambiguous reference.


 'PublicClientApplication' is an ambiguous reference between 'Microsoft.Identity.Client.PublicClientApplication' and 'Microsoft.Graph.PublicClientApplication'    
    

  private readonly PublicClientApplication _identityClientApp;
    
         public AuthenticationService(string clientId)
         {
             if(string.IsNullOrWhiteSpace(clientId))
             {
                 throw new ArgumentNullException("Client id cannot be null or empty", nameof(clientId));
             }
    
             ClientId = clientId;
            _identityClientApp = new PublicClientApplication(clientId);
             GraphClient = GetAuthenticatedClient();
         }
         /// <summary>
         ///  get the current application id
         /// </summary>


this code is located on github at repositio Onedrive-File-Explorer.

azure-active-directory
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

danielescipioni avatar image
0 Votes"
danielescipioni answered ·

Try to change line 14 with

_identityClientApp = new Microsoft.Identity.Client.PublicClientApplication(clientId);

· 2 · Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

this fails to put Microsoft.Identity.Client


0 Votes 0 · ·

What does it means "this fails to put Microsoft.Identity.Client"? Which is the error?

0 Votes 0 · ·