Problem mit dem Befehl dotnet restore (oder dotNet New WebAPI) in einem ASP.NET -Kernprojekt unter Linux
Posted: 17 Feb 2025, 15:58
Ich versuche, ein ASP.NET -Kern -Web -API -Projekt in meinem Linux -System (Ubuntu 22.04) zu erstellen und mit dem Befehl dotnet restore oder dotnet New ein Problem zu stellen: Der Prozess bleibt stecken Während des Wiederherstellungsschritts. Ich benutze den DOTNE -neuen WebAPI -o -Newapi (SDK 8.0).
Dies gibt eine gültige JSON -Antwort zurück, daher gibt es kein Problem mit der Netzwerkkonnektivität.
Code: Select all
Determining projects to restore...
/home/john/project-folder/webapp/MyWebApi.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json.
Failed to restore /home/john/project-folder/webapp/MyWebApi.csproj (in 10.09 min).
< /code>
Hat jemand dieses [url=viewtopic.php?t=11587]Problem[/url] schon einmal gestoßen? Irgendwelche Ideen, wie Sie es beheben können? arbeite gut. Das [url=viewtopic.php?t=11587]Problem[/url] scheint spezifisch für Web -API -Projekte zu sein.curl https://api.nuget.org/v3/index.json