@@ -110,15 +110,15 @@ Using a personal access token (PAT) is a great way to authenticate with Azure De
110
110
111
111
- Org-scoped feed:
112
112
113
- ```powershell
114
- nuget sources Add -Name "<FEED_NAME>" -Source "https://pkgs.dev.azure.com/<ORGANIZATION_NAME>/_packaging/<FEED_NAME>/nuget/v3/index.json" -username "<USER_NAME>" -password "<PERSONAL_ACCESS_TOKEN>"
115
- ```
113
+ ```powershell
114
+ nuget sources Add -Name "<FEED_NAME>" -Source "https://pkgs.dev.azure.com/<ORGANIZATION_NAME>/_packaging/<FEED_NAME>/nuget/v3/index.json" -username "<USER_NAME>" -password "<PERSONAL_ACCESS_TOKEN>"
115
+ ```
116
116
117
117
- Project-scoped feed:
118
118
119
- ```powershell
120
- nuget sources Add -Name "<FEED_NAME>" -Source "https://pkgs.dev.azure.com/<ORGANIZATION_NAME>/<PROJECT_NAME>/_packaging/<FEED_NAME>/nuget/v3/index.json" -username "<USER_NAME>" -password "<PERSONAL_ACCESS_TOKEN>"
121
- ```
119
+ ```powershell
120
+ nuget sources Add -Name "<FEED_NAME>" -Source "https://pkgs.dev.azure.com/<ORGANIZATION_NAME>/<PROJECT_NAME>/_packaging/<FEED_NAME>/nuget/v3/index.json" -username "<USER_NAME>" -password "<PERSONAL_ACCESS_TOKEN>"
121
+ ```
122
122
123
123
1. Publish the package to your feed.
124
124
@@ -149,29 +149,29 @@ Using a personal access token (PAT) is a great way to authenticate with Azure De
149
149
150
150
- Project-scoped feed:
151
151
152
- ```powershell
153
- Register-PSRepository -Name "PowershellAzureDevopsServices" -SourceLocation "https://pkgs.dev.azure.com/<ORGANIZATION_NAME>/<PROJECT_NAME>/_packaging/<FEED_NAME>/nuget/v3" -PublishLocation "https://pkgs.dev.azure.com/<ORGANIZATION_NAME>/<PROJECT_NAME>/_packaging/<FEED_NAME>/nuget/v3" -InstallationPolicy Trusted -Credential $credsAzureDevopsServices
154
- ```
152
+ ```powershell
153
+ Register-PSRepository -Name "PowershellAzureDevopsServices" -SourceLocation "https://pkgs.dev.azure.com/<ORGANIZATION_NAME>/<PROJECT_NAME>/_packaging/<FEED_NAME>/nuget/v3" -PublishLocation "https://pkgs.dev.azure.com/<ORGANIZATION_NAME>/<PROJECT_NAME>/_packaging/<FEED_NAME>/nuget/v3" -InstallationPolicy Trusted -Credential $credsAzureDevopsServices
154
+ ```
155
155
156
156
- Org-scoped feed:
157
157
158
- ```powershell
159
- Register-PSRepository -Name "PowershellAzureDevopsServices" -SourceLocation "https://pkgs.dev.azure.com/<ORGANIZATION_NAME>/_packaging/<FEED_NAME>/nuget/v3" -PublishLocation "https://pkgs.dev.azure.com/<ORGANIZATION_NAME>/_packaging/<FEED_NAME>/nuget/v3" -InstallationPolicy Trusted -Credential $credsAzureDevopsServices
160
- ```
158
+ ```powershell
159
+ Register-PSRepository -Name "PowershellAzureDevopsServices" -SourceLocation "https://pkgs.dev.azure.com/<ORGANIZATION_NAME>/_packaging/<FEED_NAME>/nuget/v3" -PublishLocation "https://pkgs.dev.azure.com/<ORGANIZATION_NAME>/_packaging/<FEED_NAME>/nuget/v3" -InstallationPolicy Trusted -Credential $credsAzureDevopsServices
160
+ ```
161
161
162
162
If you're still using the older `visualstudio.com` URLs, use the following command instead:
163
163
164
164
- Project-scoped feed:
165
165
166
- ```powershell
167
- Register-PSRepository -Name "PowershellAzureDevopsServices" -SourceLocation "https://<ORGANIZATION_NAME>.pkgs.visualstudio.com/<PROJECT_NAME>/_packaging/<FEED_NAME>/nuget/v3" -PublishLocation "https://<ORGANIZATION_NAME>.pkgs.visualstudio.com/<PROJECT_NAME>/_packaging/<FEED_NAME>/nuget/v3" -InstallationPolicy Trusted -Credential $credsAzureDevopsServices
168
- ```
166
+ ```powershell
167
+ Register-PSRepository -Name "PowershellAzureDevopsServices" -SourceLocation "https://<ORGANIZATION_NAME>.pkgs.visualstudio.com/<PROJECT_NAME>/_packaging/<FEED_NAME>/nuget/v3" -PublishLocation "https://<ORGANIZATION_NAME>.pkgs.visualstudio.com/<PROJECT_NAME>/_packaging/<FEED_NAME>/nuget/v3" -InstallationPolicy Trusted -Credential $credsAzureDevopsServices
168
+ ```
169
169
170
170
- Org-scoped feed:
171
171
172
- ```powershell
173
- Register-PSRepository -Name "PowershellAzureDevopsServices" -SourceLocation "https://<ORGANIZATION_NAME>.pkgs.visualstudio.com/_packaging/<FEED_NAME>/nuget/v3" -PublishLocation "https://<ORGANIZATION_NAME>.pkgs.visualstudio.com/_packaging/<FEED_NAME>/nuget/v3" -InstallationPolicy Trusted -Credential $credsAzureDevopsServices
174
- ```
172
+ ```powershell
173
+ Register-PSRepository -Name "PowershellAzureDevopsServices" -SourceLocation "https://<ORGANIZATION_NAME>.pkgs.visualstudio.com/_packaging/<FEED_NAME>/nuget/v3" -PublishLocation "https://<ORGANIZATION_NAME>.pkgs.visualstudio.com/_packaging/<FEED_NAME>/nuget/v3" -InstallationPolicy Trusted -Credential $credsAzureDevopsServices
174
+ ```
175
175
176
176
> [!TIP]
177
177
> If you encounter the following warning `Unable to resolve package source`, restart your PowerShell session.
@@ -180,15 +180,15 @@ Using a personal access token (PAT) is a great way to authenticate with Azure De
180
180
181
181
- Project-scoped feed:
182
182
183
- ```powershell
184
- Register-PackageSource -Name "PowershellAzureDevopsServices" -Location "https://pkgs.dev.azure.com/<ORGANIZATION_NAME>/<PROJECT_NAME>/_packaging/<FEED_NAME>/nuget/v3" -ProviderName NuGet -Trusted -SkipValidate -Credential $credsAzureDevopsServices
185
- ```
183
+ ```powershell
184
+ Register-PackageSource -Name "PowershellAzureDevopsServices" -Location "https://pkgs.dev.azure.com/<ORGANIZATION_NAME>/<PROJECT_NAME>/_packaging/<FEED_NAME>/nuget/v3" -ProviderName NuGet -Trusted -SkipValidate -Credential $credsAzureDevopsServices
185
+ ```
186
186
187
187
- Org-scoped feed:
188
188
189
- ```powershell
190
- Register-PackageSource -Name "PowershellAzureDevopsServices" -Location "https://pkgs.dev.azure.com/<ORGANIZATION_NAME>/_packaging/<FEED_NAME>/nuget/v3" -ProviderName NuGet -Trusted -SkipValidate -Credential $credsAzureDevopsServices
191
- ```
189
+ ```powershell
190
+ Register-PackageSource -Name "PowershellAzureDevopsServices" -Location "https://pkgs.dev.azure.com/<ORGANIZATION_NAME>/_packaging/<FEED_NAME>/nuget/v3" -ProviderName NuGet -Trusted -SkipValidate -Credential $credsAzureDevopsServices
191
+ ```
192
192
193
193
1. Run the following command to confirm if the repository was registered successfully. This command gets all the registered repositories for the current user:
194
194
0 commit comments