After Windows November update (PackageManagement
and PowerShellGet
modules of 1.0.0.1 version) I can't register HTTPS NuGet servers as PSRepository anymore:
Register-PSRepository -Name test -SourceLocation https://some-nuget/api/v2
It returns error:
# 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.
This is caused with a bug related to accessing HTTPS endpoints which probably will be fixed soon.
I still want to share a workaround kindly hinted by OneGet team:
Use it as you would use ordinary
Register-PSRepository
: