小编Kyu*_*ark的帖子

"dotnet restore"失败并显示"无法找到依赖关系NETStandard.Library"消息

我在Mac OS X上安装了最新的.NET Core,并按照教程进行操作

https://dotnet.github.io/getting-started/
Run Code Online (Sandbox Code Playgroud)

首先,我使用'dotnet new'创建了一个示例项目,然后运行命令'dotnet restore'.它失败了以下消息:

Microsoft .NET Development Utility CoreClr-x64-1.0.0-rc1-16231

  CACHE https://api.nuget.org/v3/index.json
Restoring packages for /Users/cookie/Documents/Github/t/project.json
  GET https://api.nuget.org/v3-flatcontainer/netstandard.library/index.json
  NotFound https://api.nuget.org/v3-flatcontainer/netstandard.library/index.json 2388ms
Unable to locate Dependency NETStandard.Library >= 1.0.0-rc2-23616
Writing lock file /Users/cookie/Documents/Github/t/project.lock.json
Restore complete, 2759ms elapsed

Errors in /Users/cookie/Documents/Github/t/project.json
    Unable to locate Dependency NETStandard.Library >= 1.0.0-rc2-23616

Feeds used:
    https://api.nuget.org/v3-flatcontainer/
Run Code Online (Sandbox Code Playgroud)

我收到404错误

https://api.nuget.org/v3-flatcontainer/netstandard.library/index.json
Run Code Online (Sandbox Code Playgroud)

我在Windows上尝试了相同的方法,但也失败了.任何帮助,将不胜感激!

编辑:这似乎是一个错误,在https://github.com/dotnet/cli/issues/535中讨论过 .最新的安装包现在生成NuGet.config,并成功从myget中检索NETStandard.Library.

.net coreclr

3
推荐指数
1
解决办法
1750
查看次数

标签 统计

.net ×1

coreclr ×1