You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 20, 2021. It is now read-only.
Setup some HTTPS Nuget server which requires authentication
Update your PackageManager to 1.0.0.1 version with Win November Update (it used to work in 1.0.0.0)
Scenario:
Check that Nuget.exe can install packages from your Nuget server
Try to register it as PSRepository: Register-PSRepository -Name MyNuget -SourceLocation https://my-nuget/api/v2
You will got error like this: Register-PSRepository : The specified Uri 'https://my-nuget/api/v2' for parameter 'SourceLocation' is an invalid Web Uri. Please ensure that it meets the Web Uri requirements.
Root cause:
Function Ping-Module from PSModule.psm1 not passing credentials to request.
Fix is not simple
To fix Ping-Module you need simple one-liner: you need to add following line to $WebRequestcmd script inside Ping-Module function: