gpt4 book ai didi

c# - 未知的 NuGet 错误无法检索信息

转载 作者:行者123 更新时间:2023-12-05 09:12:36 29 4
gpt4 key购买 nike

我是 Visual Studio 和 NuGet 的新手,我遇到了这个错误。

我不知道我做错了什么,你能帮帮我吗?

这是我的控制台输出:

Getting restore information for project /Users/{USERNAME}/Pfeife/Pfeife/Pfeife.csproj
Getting restore information for project /Users/{USERNAME}/Pfeife/Pfeife.iOS/Pfeife.iOS.csproj
Getting restore information for project /Users/{USERNAME}/Pfeife/Pfeife.Android/Pfeife.Android.csproj
Running non-parallel restore.
Reading project file /Users/{USERNAME}/Pfeife/Pfeife/Pfeife.csproj.
Persisting no-op dg to /Users/{USERNAME}/Pfeife/Pfeife/obj/Pfeife.csproj.nuget.dgspec.json
Restoring packages for /Users/{USERNAME}/Pfeife/Pfeife/Pfeife.csproj...
Restoring packages for .NETStandard,Version=v2.0...
GET https://api.nuget.org/v3-flatcontainer/system.net.http/index.json
Retrying 'FindPackagesByIdAsync' for source 'https://api.nuget.org/v3-flatcontainer/system.net.http/index.json'.
The SSL connection could not be established, see inner exception.
Unable to write data to the transport connection: The socket is not connected.
The socket is not connected
GET https://api.nuget.org/v3-flatcontainer/system.net.http/index.json
Retrying 'FindPackagesByIdAsync' for source 'https://api.nuget.org/v3-flatcontainer/system.net.http/index.json'.
The SSL connection could not be established, see inner exception.
Unable to write data to the transport connection: The socket is not connected.
The socket is not connected
GET https://api.nuget.org/v3-flatcontainer/system.net.http/index.json
Failed to retrieve information about 'System.Net.Http' from remote source 'https://api.nuget.org/v3-flatcontainer/system.net.http/index.json'.

最佳答案

我通过简单地重新启动 Visual Studio 解决了这个问题。 Visual Studio for Mac 似乎有很多问题。

关于c# - 未知的 NuGet 错误无法检索信息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57728831/

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