Visual studio nuget client using query for nuget package in the following way:
http://localhost:8081/artifactory/api/nuget/nuget-remote/FindPackagesById()?id='YamlDotNet'
when the request is made directly to nuget remote repository, the next link is missing the "FindPackagesById()" reference, for example:
<link rel="next" href="http://localhost:8081/artifactory/api/nuget/nuget-remote/?id=%27YamlDotNet%27&$skip=100"/>
however, when the request is made to a virtual repository the "FindPackagesById()" reference is exists:
<link rel="next" href="http://localhost:8081/artifactory/api/nuget/nuget/FindPackagesById()?$skip=80&id=%27YamlDotNet%27"/>
since the the "FindPackagesById()" reference is missing when using remote repository, visual studio client cannot find all the versions of an artifact in case there are more than 100 versions.
The workaround for the issue is to include the remote repository in virtual repository, and to use the virtual repository in Visual Studio as package provider
steps to reproduce:
1. create nuget remote repo pointing to https://www.nuget.org/
2. add the remote repos as source in visual studio and search for "YamlDotNet" - you will not find all the versions
also, you can also enter the following url to see the response (and the missing reference):
http://localhost:8081/artifactory/api/nuget/nuget-remote/FindPackagesById()?id=%27YamlDotNet%27
3. create virtual nuget repo and include in it the remote repo from step 1.
4. add the virtual repo as source in visual studio and search for "YamlDotNet" - you will find all the versions.
also, you can also enter the following url to see the response:
http://localhost:8081/artifactory/api/nuget/nuget/FindPackagesById()?id=%27YamlDotNet%27
- is duplicated by
-
RTFACT-17482 Unable to restore nuget package from the proxy repository for case, when there are more than 100 older versions published.
- Open
-
RTFACT-16738 Visual Studios doesn't show up latest version for some packages
- Done
- is related to
-
RTFACT-24447 Unable to download packages from dotnet.myget.org if there are more than 100 versions
- Open
- relates to
-
RTFACT-12311 Wrong URL in Nuget feed for "next" link
- Done