c# - 从 3.4 alpha 升级到 Microsoft.IdentityModel.Clients.ActiveDirectory 3.10

标签 c# xamarin portable-class-library adal

我正在尝试将我的 PCL 项目从 3.4 alpha 版本升级到 ADAL 的最新版本。我的 PCL 目前使用 Profile111,针对 .NET 4.5、Windows 8.0、Windows Phone 8.1、Xamarin.Android、Xamarin.IOS 和 Xamarin.IOS(经典)。

我从 nuget 包管理器收到以下错误消息:

Could not install package 'Microsoft.IdentityModel.Clients.ActiveDirectory 3.10.305231913'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile111', but the package does not contain any assembly references or content files that are compatible with that framework.

最新版本的 ADAL 是否不再支持 Windows Phone 8.1?

最佳答案

this blog post ADAL 3.x 中不再支持所描述的 Windows Phone。 我有相同的错误消息并按以下步骤解决。请尝试一下:)

  1. 右键单击(可移植)项目并选择属性。
  2. 您可以看到如下属性窗口。单击[更改]按钮。 click this link to watch screen shot
  3. 您将看到[更改目标]弹出窗口,因此请取消选中[Windows Phone 8.1]复选框,然后单击[确定]按钮。
  4. 您可能会收到一条错误消息“无法更改项目的目标。选定的目标要求项目选择加入 NuGet 3.0 支持,但是,Visual Studio 无法自动为您执行此操作。请卸载所有 NuGet 包并重试” 。如果收到错误消息,可以在从 Nuget 管理器卸载(可移植)项目的所有包后更改此设置。
  5. 重试 1-3,您将成功安装 ADAL 软件包。

谢谢, 玛莎

关于c# - 从 3.4 alpha 升级到 Microsoft.IdentityModel.Clients.ActiveDirectory 3.10,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37771969/

相关文章:

c# - 如何使用 Entity Framework `ValueComparer<T>` ?

c# - IEquatable - 覆盖等于 - 检查空值

c# - 使用 vstest.console.exe 工具运行 Selenium 测试时显示测试的 URL

c# - 如何从 Xamarin(Android 和 iOS)使用 OpenCV?

mono - 从 Xamarin Mono for Android 项目引用 PCL(可移植类库)

c# - 如何在 xamarin.forms 中获取 ListView 的子级?

.net - .Net Framework 4 上的可移植类库和 MVVM 支持

c# - PCL 可移植 - NuGet 不支持

c# - 数字之间带有符号的正则表达式

android - 添加启动画面后,选项卡式页面不显示?