Backport of #22186 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Fixes #21294 This PR adds support for NuGet v2 API. Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>