Skip to content

Instantly share code, notes, and snippets.

@johnmmoss
Created March 29, 2018 16:36
Show Gist options
  • Save johnmmoss/3d93e125fb3b0c06f384a172e02e4e49 to your computer and use it in GitHub Desktop.
Save johnmmoss/3d93e125fb3b0c06f384a172e02e4e49 to your computer and use it in GitHub Desktop.
# Register a new Repository
Register-PSRepository
-Name PSRepository
-PackageManagementProvider NuGet
-InstallationPolicy Trusted
-Credential Get-Credential
-SourceLocation https://<project-name>.pkgs.visualstudio.com/_packaging/<repo-name>/nuget/v3/index.json
-PublishLocation https://<project-name>.pkgs.visualstudio.com/_packaging/<repo-name>/nuget/v3/index.json
# Display Repositorys
Get-PSRepository
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment