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
:::image type="content" source="../media/connect-to-feed.png" alt-text="Screenshot showing the connect to feed button in TFS":::
46
44
47
-
1. Follow the highlighted steps to get the tools, add the feed to your local NuGet configuration, and push your package.
45
+
1. Select **NuGet** from the left panel.
46
+
47
+
1. If this is your first time using Azure Artifacts with NuGet, select the link under **Get the tools** to download and install NuGet and the Credential Provider.
48
+
49
+
1. Run the command highlighted in step number two to add your feed URL to your nuget.config file.
48
50
49
51
:::image type="content" source="../media/nugeturl.png" alt-text="Screenshot showing how to push your package using NuGet.exe in TFS":::
50
-
52
+
53
+
1. Run the command highlighted in step number three if you want to publish your NuGet package.
54
+
51
55
::: moniker-end
52
56
53
57
> [!NOTE]
54
-
> Azure Artifacts Credential Provider is supported in NuGet version 4.8.2 or later. See [Creating a NuGet credential provider](/nuget/reference/extensibility/nuget-exe-credential-providers#creating-a-nugetexe-credential-provider) for more information.
55
-
58
+
> Azure Artifacts Credential Provider is supported with NuGet 4.8.2 or later. See [Azure Artifacts Credential Provider](https://github.com/microsoft/artifacts-credprovider#azure-artifacts-credential-provider) for more information.
56
59
57
60
::: moniker range="azure-devops"
58
61
59
-
## Project setup (NuGet 2)
60
-
61
-
With NuGet version 2, you must use a Personal Access Tokens to authenticate to your feed. To do so, we must first get the package source URL:
62
+
## Legacy project setup (NuGet v2)
62
63
63
-
1. Select **Artifacts** and then select your feed.
64
+
1. Select **Artifacts** and then select your feed.
64
65
65
66
1. Select **Connect to feed**.
66
67
67
68
:::image type="content" source="../media/connect-to-feed-azure-devops-newnav.png" alt-text="Screenshot showing the connect to feed button":::
68
69
69
70
1. Select **NuGet.exe** from the left panel.
70
-
71
+
71
72
1. Copy your package source URL, and then replace `/v3/index.json` with `/v2`.
72
73
73
74
:::image type="content" source="../media/nuget-consume-url-azure-devops-newnav.png" alt-text="Screenshot showing the source URL":::
74
75
75
76
1. Create a [Personal Access Token](../../organizations/accounts/use-personal-access-tokens-to-authenticate.md#create-a-pat). 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).
76
77
77
-
Run the following command in an elevated command prompt window to add your package source:
1. Run the following command in an elevated command prompt window to add your package source:
82
79
83
-
If your organization is connected to Azure Active Directory, you must first authenticate with your AD credentials, and then add your personal access token using the *setapikey* command:
1. If your organization is connected to Azure Active Directory, you must first authenticate with your AD credentials, and then add your personal access token using the *setapikey* command:
0 commit comments