【问题标题】:Package restore failed when I use a portable library使用可移植库时包还原失败
【发布时间】:2016-04-18 09:37:42
【问题描述】:

我正在尝试将 nuget pacakge EntityFramwork.Sqlite 安装在目标是 .net 4.6 和 windows 通用 10.0 的便携式库中。如果这样做,我会收到一条错误消息,提示包还原失败。

如果我为 .net 4.6 创建项目库,那么我可以添加包,如果我仅为 Windows 10 应用程序创建通用可移植库,我也可以添加包。

那么,如果我可以在 .net 4.6 项目和 windows 通用项目中使用该包,为什么我不能在针对此类项目的可移植库中使用它?

谢谢。

【问题讨论】:

    标签: sqlite nuget win-universal-app entity-framework-core


    【解决方案1】:

    EF7 当前针对 netstandard1.3(又名 dotnet5.4)和 .NET 4.5.1。截至今天(2016 年 1 月 14 日),没有包含这两者的 PCL 配置文件。 (见http://embed.plnkr.co/03ck2dCtnJogBKHJ9EjY)。

    另见https://github.com/dotnet/corefx/blob/master/Documentation/project-docs/standard-platform.md

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-02-03
      • 2017-11-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多