我在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.
NETStandard.Library
尚未在NuGet上发布.加
到你的NuGet.config
文件.