【问题标题】:Installing package that do not support .NetStandard安装不支持 .NetStandard 的包
【发布时间】:2017-01-02 13:10:55
【问题描述】:

如果.NetStandard 不支持某个包,但portable-net45 或netcore45 支持。我们如何在 .NetStandard 目标项目中安装这样的包。

【问题讨论】:

    标签: nuget-package .net-standard


    【解决方案1】:

    我们可以使用这个小技巧来安装软件包。

    在 project.json 中:在 netstandard 框架 json 中。使用如下导入键。

    "frameworks": {
        "netstandard1.5": {}
      }
    
    
    "frameworks": {
        "netstandard1.5": {
          "imports": "portable-net45+netcore45+wp8"
        }
      }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-01-11
      • 1970-01-01
      • 2014-07-09
      • 2015-07-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多