【发布时间】:2017-02-14 10:02:45
【问题描述】:
我正在尝试使用此处发布的指南和示例在 Xamarin Forms 应用中使用最新版本的 ADAL (v3.13.5):
http://www.cloudidentity.com/blog/2015/07/22/using-adal-3-x-with-xamarin-forms/
不过,我注意到我无法在 Xamarin Forms 解决方案的 UWP 项目中安装 ADAL v3.x。我在下面的输出中粘贴了我遇到的错误。
当我尝试在一个简单的 UWP 解决方案中安装 ADAL v3.x 时,我也注意到了同样的问题。看起来 v2.28.2 是我可以在任何 UWP 项目中安装的最新版本的 ADAL。有没有办法解决这个问题,以便我可以在 Xamarin Forms 应用程序中的所有三个项目中实现相同版本的 ADAL,从而实现相同的身份验证实现?目前,v2.x 是 UWP 中 ADAL 的唯一可用选项吗?
检测到的包降级:System.Text.RegularExpressions 从 4.1.0 到 4.0.12 App1.UWP (>= 1.0.0) -> Microsoft.IdentityModel.Clients.ActiveDirectory (>= 3.13.5) -> System.Xml.ReaderWriter (>= 4.0.11) -> System.Text.RegularExpressions (>= 4.1.0) App1.UWP (>= 1.0.0) -> Microsoft.IdentityModel.Clients.ActiveDirectory (>= 3.13.5) -> System.Text.RegularExpressions (>= 4.0.12) 检测到的包降级:System.Text.RegularExpressions 从 4.1.0 到 4.0.12 App1.UWP (>= 1.0.0) -> Microsoft.IdentityModel.Clients.ActiveDirectory (>= 3.13.5) -> System.Runtime.Serialization.Json (>= 4.0.2) -> System.Private.DataContractSerialization ( >= 4.1.1) -> System.Text.RegularExpressions (>= 4.1.0) App1.UWP (>= 1.0.0) -> Microsoft.IdentityModel.Clients.ActiveDirectory (>= 3.13.5) -> System.Text.RegularExpressions (>= 4.0.12) 检测到 System.Collections 的版本冲突。 App1.UWP (>= 1.0.0) -> Microsoft.NETCore.UniversalWindowsPlatform (>= 5.0.0) -> System.Net.Sockets (>= 4.0.0) -> runtime.win.System.Net.Sockets ( >= 4.1.0) -> System.Collections (>= 4.0.11) App1.UWP (>= 1.0.0) -> Microsoft.NETCore.UniversalWindowsPlatform (>= 5.0.0) -> Microsoft.NETCore.Runtime (>= 1.0.0) -> Microsoft.NETCore.Runtime.CoreCLR-arm ( >= 1.0.0) -> System.Collections (= 4.0.10)。 “App1.UWP”的包还原失败。 包还原失败。回滚“App1.UWP”的包更改。
【问题讨论】:
标签: authentication xamarin adal