Uipath and namespaces

Hello All,
Im unsure if this is bug or im importing in a wrong way,
image

Im importing Microsoft identity but always cant see the references
image

I had tried to import some packages as well

And when i hover over it it can tell which namespace

Any tips round it !
Im trying to get MSAL token

AuthenticationResult result;
var accounts = await app.GetAccountsAsync();
IAccount account = ChooseAccount(accounts); // for instance accounts.FirstOrDefault
                                            // if the app manages is at most one account
try
{
 result = await app.AcquireTokenSilent(scopes, account)
                   .ExecuteAsync();
}
catch(MsalUiRequiredException ex)
{
  result = await app.AcquireTokenXX(scopes, account)
                    .WithOptionalParameterXXX(parameter)
                    .ExecuteAsync();
}

BR/ hazem

@Hazem_Saleh

Try using fullnamespace on everyline so that it does not conflict

Cheers

hi this solve some part but now cant see the other functions

Microsoft.Identity.Client.AuthenticationResult result;

var accounts = await app.GetAccountsAsync();
IAccount account = ChooseAccount(accounts); // for instance accounts.FirstOrDefault
                                            // if the app manages is at most one account
try
{
 result = await app.AcquireTokenSilent(scopes, account)
                   .ExecuteAsync();
}
catch(MsalUiRequiredException ex)
{
  result = await app.AcquireTokenXX(scopes, account)
                    .WithOptionalParameterXXX(parameter)
                    .ExecuteAsync();
}

I can see the app is not defined so im try to assign account directly

but cant see it under Microsoft identity.Client !

BR
Hazem

@Hazem_Saleh

Canyou please tell which is not found or what error you are getting

Cheers

Thanks for answering

await GetAccountsAsync();

and

await app.AcquireTokenSilent(scopes, account)
                   .ExecuteAsync();
}

everything after await !

I know app is not referenced, im trying in Visual studio App which is the reference !

im trying to figure out how to replace it in code stage

Thanks

@Hazem_Saleh

If you are using async and awaits then that function should be in same code with awaits

Check this and try implementing

Cheers

Thanks but still same issue,
im trying to find a way around it.

Regards