Skip to content

Commit 4a33369

Browse files
committed
fixing monikers
1 parent 5d0fbd0 commit 4a33369

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

docs/artifacts/nuget/nuget-exe.md

+15-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ NuGet 4.8.2 and later supports the Azure Artifacts Credential Provider, which au
5959

6060
Then, run any [nuget command](/nuget/tools/nuget-exe-cli-reference).
6161

62-
::: moniker range="azure-devops-2019"
62+
::: moniker range="azure-devops"
6363

6464
## Add a feed to NuGet 2
6565
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:
7979
>![NuGet Package source URL in the Connect to feed dialog](../media/nuget-consume-url-azure-devops-newnav.png)
8080
>
8181
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+
8294
::: moniker-end
8395

8496
::: moniker range="<= tfs-2018"
@@ -98,7 +110,6 @@ To use a 2.x client, first get the v3 feed URL:
98110

99111
![NuGet Package source URL in the Connect to feed dialog](../media/nuget-consume-url.png)
100112

101-
::: moniker-end
102113

103114
Then, at the end of the URL, replace `/v3/index.json` with `/v2`.
104115

@@ -111,3 +122,5 @@ nuget sources add -name {your feed name} -source {your feed URL} -username {anyt
111122
```
112123

113124
Then, run any [NuGet command](/nuget/tools/nuget-exe-cli-reference).
125+
126+
::: moniker-end

0 commit comments

Comments
 (0)