Problem Solving vscode in nuget plug-in version of the package can not be obtained
1. Problem Description
Probably in July of this year, I suddenly found NuGet Package Manager expansion can not be used normally, only the query to the package:
After the election finished package is always prompt you can not get version information:
The last time was probably normal use in March of this year
2. Problem Cause
Later in the GitHub issue to find the reasons:
Domestic access api.nuget.org will be redirected to nuget.cdn.azure.cn
However nuget.cdn.azure.cn is case-sensitive ......
This issue feels a bit awkward
So you get the version information failed
3. Solution
The solution is very simple, that is the path into all lowercase just fine, just need to slightly modify the plug-in code
Probably need to modify the file: .vscode \ Extensions \ jmrog.vscode-NuGet-Package Penalty for-Manager-1.1.6 \ OUT \ src \ Actions \ the Add-Methods
Just this directory fetchPackageVersions.js file
Find pictures that line the red line plan
Url add back toLowerCase()
to lower case like
Try again after the restart to save
After we had successfully obtained the release of information