正如标题所说,我不能在 nuget v3 url 中使用 Find-Package 命令:
https://api.nuget.org/v3/index.json
Run Code Online (Sandbox Code Playgroud)
如果我运行命令:
Find-Package nuget.versioning -Source https://api.nuget.org/v3/index.json
Run Code Online (Sandbox Code Playgroud)
我收到一个错误,提示找不到匹配项。将命令更改为:
Find-Package nuget.versioning -Source https://www.nuget.org/api/v2
Run Code Online (Sandbox Code Playgroud)
工作正常。
我是否需要升级某些软件才能使其正常工作?我正在运行 Powershell 版本 5,所以我不确定我需要采取哪些步骤来解决这个问题。