@@ -59,7 +59,7 @@ NuGet 4.8.2 and later supports the Azure Artifacts Credential Provider, which au
59
59
60
60
Then, run any [ nuget command] ( /nuget/tools/nuget-exe-cli-reference ) .
61
61
62
- ::: moniker range="azure-devops-2019 "
62
+ ::: moniker range="azure-devops"
63
63
64
64
## Add a feed to NuGet 2
65
65
NuGet 2 uses Personal Access Tokens to access feeds.
@@ -79,6 +79,18 @@ To use a 2.x client, first get the v3 feed URL:
79
79
> ![ NuGet Package source URL in the Connect to feed dialog] ( ../media/nuget-consume-url-azure-devops-newnav.png )
80
80
>
81
81
82
+ Then, at the end of the URL, replace ` /v3/index.json ` with ` /v2 ` .
83
+
84
+ [ !INCLUDE [ generate-pat] ( ../includes/generate-pat.md )]
85
+
86
+ Run
87
+
88
+ ``` Command
89
+ nuget sources add -name {your feed name} -source {your feed URL} -username {anything} -password {your PAT}
90
+ ```
91
+
92
+ Then, run any [ NuGet command] ( /nuget/tools/nuget-exe-cli-reference ) .
93
+
82
94
::: moniker-end
83
95
84
96
::: moniker range="<= tfs-2018"
@@ -98,7 +110,6 @@ To use a 2.x client, first get the v3 feed URL:
98
110
99
111
![ NuGet Package source URL in the Connect to feed dialog] ( ../media/nuget-consume-url.png )
100
112
101
- ::: moniker-end
102
113
103
114
Then, at the end of the URL, replace ` /v3/index.json ` with ` /v2 ` .
104
115
@@ -111,3 +122,5 @@ nuget sources add -name {your feed name} -source {your feed URL} -username {anyt
111
122
```
112
123
113
124
Then, run any [ NuGet command] ( /nuget/tools/nuget-exe-cli-reference ) .
125
+
126
+ ::: moniker-end
0 commit comments