Problem mit dem Befehl dotnet restore (oder dotNet New WebAPI) in einem ASP.NET -Kernprojekt unter Linux

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Problem mit dem Befehl dotnet restore (oder dotNet New WebAPI) in einem ASP.NET -Kernprojekt unter Linux

by Anonymous » 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).

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
Dies gibt eine gültige JSON -Antwort zurück, daher gibt es kein Problem mit der Netzwerkkonnektivität.

Top