相关疑难解决方法(0)

Register-PSRepository上的Web Uri错误无效

在Windows 11月更新(PackageManagement以及PowerShellGet1.0.0.1版本的模块)之后,我无法再将HTTPS NuGet服务器注册为PSRepository:

Register-PSRepository -Name test -SourceLocation https://some-nuget/api/v2
Run Code Online (Sandbox Code Playgroud)

它返回错误:

# Register-PSRepository : The specified Uri 'https://some-nuget/api/v2' for parameter 'SourceLocation' is an invalid Web Uri. Please ensure that it meets the Web Uri requirements.
Run Code Online (Sandbox Code Playgroud)

powershell oneget powershellget

7
推荐指数
2
解决办法
5488
查看次数

标签 统计

oneget ×1

powershell ×1

powershellget ×1