【问题标题】:Visual Studio for Mac and Xamarin Forms PCL - can't install NodaTime 2.0 with NuGetVisual Studio for Mac 和 Xamarin Forms PCL - 无法使用 NuGet 安装 NodaTime 2.0
【发布时间】:2017-04-08 06:04:51
【问题描述】:

我想在 PCL 中将 NodaTime 与 Xamarin Forms 一起使用,但是 NuGet 安装失败并显示以下消息:

无法安装包“NodaTime 2.0.0”。您正在尝试将此软件包安装到以 '.NETPortable,Version=v4.5,Profile=Profile259' 为目标的项目中, 但该包不包含任何与该框架兼容的程序集引用或内容文件。如需更多信息,请联系包作者。

NuGet 包信息说它没有任何依赖,这是怎么回事?

【问题讨论】:

    标签: xamarin.forms nodatime visual-studio-mac


    【解决方案1】:

    NodaTime 2.0.0 仅支持 .NET45 或 .NET Standard。您需要将 Xamarin Forms 项目更新到 .NET Standard,或者降级您的 NodaTime 版本 1.3.4。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-04-01
      • 2018-02-04
      • 2019-07-23
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多