我试图使用此命令为Win 64发布.net核心应用。
dotnet publish -c Release -r win-x64
我收到此错误。
Restoring packages for
C:\projects\xxx\xxxStandard\Tests\UnitTestsCore\UnitTests.csproj...
C:\Program Files\dotnet\sdk\2.1.503\NuGet.targets(114,5): error : Unable to
load the service index for source https://ap
i.nuget.org/v3/index.json. [C:\projects\xxx\xxxStandard\xxxStandard.sln]
C:\Program Files\dotnet\sdk\2.1.503\NuGet.targets(114,5): error : A
connection attempt failed because the connected pa
rty did not properly respond after a period of time, or established
connection failed because connected host has failed
to respond [C:\projects\xxx\xxxStandard\xxxStandard.sln]
此恢复只是在某些特定项目中失败了,而不是全部失败。 我试图检查nuget cli是否单独起作用,并且是否起作用。我也尝试在公司网络内部和外部进行发布。
任何想法如何使它起作用?
Egid