To solve the problem of unstable access to NuGet servers in China, we have built a NuGet image with Alibaba Cloud server, which has been put into trial operation.
Here's how to use NuGet to image the source:
1) NuGet image source address: https://nuget.cnblogs.com/v3/index.json
2) Add this image source in NuGet.Config:
Note: The path of NuGet.Config in Windows is %appdata%\NuGet\NuGet.Config, and the path in Mac and Linux is ~/.nuget/NuGet/NuGet.Config, if there is no NuGet.Config file, you can run the dotnet restore command to generate.
Or add a method in Visual Studio:
Due to the current limited bandwidth, if the following problem occurs, it means that the current bandwidth is full, and you can try again later.
The download of 'https://nuget.cnblogs.com/v3-flatcontainer/system.runtime.extensions/4.3.0/system.runtime.extensions.4.3.0.nupkg' timed out because no data was received for 60000ms.
A nuget domestic source officially built by the blog park team
When using it, I feel that there is still a bit of a problem, and when installing the package, I will still go to the nuget official to download it。。。。。
At first, I thought there was a problem with VS, so I tried several times, but I still downloaded the package from the official Nuget website
Then, I saw a sentence in the comments
Due to the nuget official website, the addresses in some pages cannot be replaced, and you have to go to the nuget official website.
I hope the blog garden solves this problem as soon as possible...
|