NuGet Package Disconnection Download

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.