I've installed latest .NET Core on Mac OS X, and followed the tutorial on
https://dotnet.github.io/getting-started/
First I created a sample project with 'dotnet new', then ran the command 'dotnet restore'. It failed with following messages:
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/
I got 404 error on
https://api.nuget.org/v3-flatcontainer/netstandard.library/index.json
I tried the same approach on Windows, which also fails. Any help would be appreciated!
Edit : It seems it was a bug, which was discussed in https://github.com/dotnet/cli/issues/535 . Latest installation packages now generates NuGet.config, and successfully retrieves NETStandard.Library from myget.
NETStandard.Library
hasn't been yet released on NuGet. Add
<add key="DotNet-Core" value="https://myget.org/f/dotnet-core/api/v3/index.json" />
to your NuGet.config
file.
Collected from the Internet
Please contact debug[email protected] to delete if infringement.
Comments