gpt4 book ai didi

.net - "dotnet restore"失败并显示 "Unable to locate Dependency NETStandard.Library"消息

转载 作者:行者123 更新时间:2023-12-01 10:36:35 28 4
gpt4 key购买 nike

我已经在 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 上发布。添加

<add key="DotNet-Core" value="https://myget.org/f/dotnet-core/api/v3/index.json" />

到您的 NuGet.config 文件。

关于.net - "dotnet restore"失败并显示 "Unable to locate Dependency NETStandard.Library"消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34351692/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com