我试图将AAD登录控件添加到我的UWP应用程序中。我已经在启动时设置了实例:
MicrosoftGraphService.Instance.AuthenticationModel = MicrosoftGraphEnums.AuthenticationModel.V2;
MicrosoftGraphService.Instance.Initialize(ServiceConstants.MSAL_APPLICATION_ID,
MicrosoftGraphEnums.ServicesToInitialize.UserProfile | MicrosoftGraphEnums.ServicesToInitialize.OneDrive,
new[] {"User.Read", "Files.ReadWrite" });
但是当我打电话给await AADLogin.SignInAsync();
时,我得到了NotImplementedException和指向MSAL v3重大更改的链接:https://aka.ms/msal-net-3-breaking-change。
我做错了还是控件不支持版本3?