【发布时间】:2015-12-18 08:50:10
【问题描述】:
我在 Mac OS X 上安装了最新的 .NET Core,并按照教程进行操作
https://dotnet.github.io/getting-started/
首先,我使用“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/
我收到 404 错误
https://api.nuget.org/v3-flatcontainer/netstandard.library/index.json
我在 Windows 上尝试了相同的方法,但也失败了。任何帮助将不胜感激!
编辑:这似乎是一个错误,已在 https://github.com/dotnet/cli/issues/535 中讨论过。最新安装包现在生成 NuGet.config,并成功从 myget 检索 NETStandard.Library。
【问题讨论】: