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
Copy file name to clipboardExpand all lines: docs/artifacts/includes/generate-pat.md
+4-3
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,9 @@ ms.technology: devops-cicd
4
4
ms.manager: mijacobs
5
5
ms.author: rabououn
6
6
author: ramiMSFT
7
-
ms.date: 02/19/2020
7
+
ms.date: 03/24/2020
8
8
---
9
-
Generate a Personal Access Token (PAT) using the instructions [here](../../organizations/accounts/use-personal-access-tokens-to-authenticate.md). Scope your PAT to the organization(s) you want to access and to one of the following scopes: *Packaging (read)*, *Packaging (read and write)*, or *Packaging (read, write, and manage).*
9
+
Generate a Personal Access Token (PAT) using the instructions [Authenticate access with personal access tokens](../../organizations/accounts/use-personal-access-tokens-to-authenticate.md). Scope your PAT to the organization(s) you want to access and to one of the following scopes: *Packaging (read)*, *Packaging (read and write)*, or *Packaging (read, write, and manage).*
10
10
11
-
> We strongly recommend **not checking your PAT into source control**; anyone with access to your PAT can interact with Azure DevOps Services as you.
11
+
> [!NOTE]
12
+
> We strongly recommend **not checking your PAT into source control**. Anyone with access to your PAT can gain access to your Azure DevOps Services.
NuGet 4.8.2 and later supports the Azure Artifacts Credential Provider, which automatically acquires feed credentials when needed.
21
+
NuGet 4.8.2 and later supports the Azure Artifacts Credential Provider, which automatically acquires feed credentials when needed. For more information on using credential providers with NuGet, see [Creating a NuGet credential provider](/nuget/reference/extensibility/nuget-exe-credential-providers#creating-a-nugetexe-credential-provider).
22
22
23
23
1. Navigate to your feed ([or create a feed if you haven't](../feeds/create-feed.md)).
24
24
@@ -27,12 +27,12 @@ NuGet 4.8.2 and later supports the Azure Artifacts Credential Provider, which au
27
27
::: moniker range=">= azure-devops-2019"
28
28
29
29
> [!div class="mx-imgBorder"]
30
-
>
30
+
>
31
31
>
32
32
33
33
3. Select **NuGet.exe** under the **NuGet** header
34
34
35
-
4. Select **Get the tools** in the topright corner
35
+
4. Select **Get the tools** in the top-right corner
36
36
37
37
5. Follow steps **1** and **2** to download the latest NuGet version and the credential provider.
38
38
@@ -49,7 +49,7 @@ NuGet 4.8.2 and later supports the Azure Artifacts Credential Provider, which au
49
49
50
50
::: moniker range="<= tfs-2018"
51
51
52
-

52
+

53
53
54
54
3. Follow steps 1, 2, and 3 to get the tools, add the feed to your local NuGet configuration, and push the package.
55
55
@@ -59,6 +59,8 @@ 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"
63
+
62
64
## Add a feed to NuGet 2
63
65
NuGet 2 uses Personal Access Tokens to access feeds.
64
66
@@ -67,45 +69,45 @@ To use a 2.x client, first get the v3 feed URL:
67
69
1. Navigate to your feed ([or create a feed if you haven't](../feeds/create-feed.md)).
68
70
69
71
2. Select **Connect to feed**:
70
-
71
-
::: moniker range=">= azure-devops-2019"
72
72
73
73
> [!div class="mx-imgBorder"]
74
74
>
75
75
>
76
+
3. Copy the NuGet package source URL:
77
+
78
+
> [!div class="mx-imgBorder"]
79
+
>
80
+
>
76
81
77
82
::: moniker-end
78
83
79
84
::: moniker range="<= tfs-2018"
80
85
81
-

86
+
## Add a feed to NuGet 2
87
+
NuGet 2 uses Personal Access Tokens to access feeds.
82
88
83
-
::: moniker-end
84
-
85
-
3. Copy the NuGet package source URL:
89
+
To use a 2.x client, first get the v3 feed URL:
86
90
87
-
::: moniker range=">= azure-devops-2019"
91
+
1. Navigate to your feed ([or create a feed if you haven't](../feeds/create-feed.md)).
88
92
89
-
> [!div class="mx-imgBorder"]
90
-
>
91
-
>
93
+
2. Select **Connect to feed**:
92
94
93
-
::: moniker-end
95
+

94
96
95
-
::: moniker range="<= tfs-2018"
97
+
3. Copy the NuGet package source URL:
96
98
97
99

98
100
99
-
::: moniker-end
100
-
101
+
::: moniker-end
102
+
101
103
Then, at the end of the URL, replace `/v3/index.json` with `/v2`.
0 commit comments