首页 新闻 会员 周边

Unable to resolve NETStandard.Library (>= 1.0.0) for .NETStandardApp,Version=v1.3

0
悬赏园豆:10 [已解决问题] 解决于 2016-03-24 21:02

运行 dotnet restore 命令时出现下面的错误:

error: Unable to resolve NETStandard.Library (>= 1.0.0) for .NETStandardApp,Version=v1.3.

dotnet cli 的版本是:

.NET Command Line Tools (1.0.0-dev-001698)

project.json 中的内容是:

{
    "version": "3.2.4",
    "summary": "EnyimMemcached",
    "frameworks": {
        "netstandardapp1.3": {
            "dependencies": {
                "NETStandard.Library": "1.0.0-*"
            },
            "imports": [
                "dnxcore50",
                "portable-net45+win8"
            ]
        }
    },
    "configurations": {
        "Debug": {
            "compilationOptions": {
                "allowUnsafe": true
            }
        },
        "Release": {
            "compilationOptions": {
                "allowUnsafe": true
            }
        }
    },
    "dependencies": {
        "Microsoft.Extensions.Logging.Abstractions":"1.0.0-*"
    }
}
dudu的主页 dudu | 高人七级 | 园豆:30874
提问于:2016-03-24 18:29
< >
分享
最佳答案
0

在当前程序的文件夹中添加如下内容的NuGet.Config文件后,问题解决:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <clear />
    <add key="AspNetCI" value="https://www.myget.org/F/aspnetcidev/api/v3/index.json" />
    <add key="NuGet.org" value="https://api.nuget.org/v3/index.json" />
  </packageSources>
</configuration>
dudu | 高人七级 |园豆:30874 | 2016-03-24 21:01
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册