NuGet Package Disconnection Download
(Kyung's Column)
NuGet is an extension of VC that is used to download dependent packages.
NuGet downloads are not disconnected, and the download source is easy to disconnect.
https://nuget.org/api/v2/
https://go.microsoft.com/fwlink/?LinkID=230477
A larger package cannot be downloaded successfully, and multiple attempts are unsuccessful.
E:\github\cpp\grpc\vsprojects>d:\tools\nuget Restore Grpc.sln
MSBuild auto-detection:using MSBuild Version ' 12.0 ' from ' C:\Program Files (x86
) \msbuild\12.0\bin '.
Feeds used:
C:\Users\jinqing\AppData\Local\NuGet\Cache
C:\Users\jinqing\.nuget\packages\
https://nuget.org/api/v2/
https://go.microsoft.com/fwlink/?LinkID=230477
Restoring NuGet Package grpc.dependencies.openssl.1.0.204.1.
Warning: Unable to find version ' 1.0.204.1 ' of the package ' Grpc.dependencies.openssl '.
Unable to find version ' 1.0.204.1 ' of the package ' Grpc.dependencies.openssl '.
Download in PM console under VC also fails:
Pm> Install-package Grpc.dependencies.openssl
Attempting to resolve dependency "grpc.dependencies.zlib (≥1.2.8.10)".
Attempting to resolve dependency "grpc.dependencies.zlib.redist (≥1.2.8.10)".
Install-package: Unable to read data from the transport connection: the remote host forced the shutdown of an existing connection.
Location Line: 1 characters: 16
+ install-package <<<< Grpc.dependencies.openssl
+ categoryinfo:notspecified: (:) [Install-package], IOException
+ Fullyqualifiederrorid:nugetcmdletunhandledexception,nuget.powershell.commands.installpackagecommand
You can search for the package on the NuGet site:
https://www.nuget.org/packages/grpc.dependencies.openssl/1.0.204.1
On the left, there is a "Download (how-to)" link, and the FF download can get the download URL for the package:
Https://api.nuget.org/packages/grpc.dependencies.openssl.1.0.204.1.nupkg
Then use the breakpoint continuation tool to download.
Copy to the cache directory when the download is complete.
C:\Users\jinqing\AppData\Local\NuGet\Cache
This directory can be opened in the NuGet configuration interface of VC: Package cache, browse ...
Then the installation was successful.
pm> install-package Grpc.dependencies.openssl
Attempting to resolve dependency "grpc.dependencies.zlib (≥1.2.8.10)".
Attempting to resolve dependency "grpc.dependencies.zlib.redist (≥1.2.8.10)".
Attempting to resolve dependency "grpc.dependencies.openssl.redist (≥1.0.204.1)".
"Grpc.dependencies.openssl 1.0.204.1" was successfully installed.
Pm>
NuGet Package Disconnection Download