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
Azure Artifacts enables developers to publish and download NuGet packages from different sources such as feeds and public registries. With Azure Artifacts, you can create feeds that can be either private, allowing you to share packages with your team and specific users, or public, enabling you to share them openly with anyone on the internet.
18
+
Azure Artifacts enables developers to publish and download NuGet packages from sources such as feeds and public registries. With Azure Artifacts, you can create feeds that are either:
19
19
20
-
In this article, you'll learn how to:
20
+
* Private, so you can share packages with your team and specific users.
21
+
* Public, so you can share packages openly with anyone on the internet.
21
22
22
-
> [!div class="checklist"]
23
+
In this quickstart, you learn how to:
24
+
25
+
> [!div class="checklist"]
26
+
>
23
27
> * Create a new feed.
24
28
> * Set up your project and connect to your feed.
25
29
> * Publish NuGet packages.
26
30
> * Download packages from your feed.
27
31
28
32
## Prerequisites
29
33
30
-
- An Azure DevOps organization and a project. Create an [organization](../organizations/accounts/create-organization.md)or a [project](../organizations/projects/create-project.md#create-a-project) if you haven't already.
34
+
* Create an Azure DevOps [organization](../organizations/accounts/create-organization.md)and a [project](../organizations/projects/create-project.md#create-a-project) if you haven't already.
31
35
32
-
- Install the [latest NuGet version](https://www.nuget.org/downloads).
36
+
* Install the [latest NuGet version](https://www.nuget.org/downloads).
33
37
34
-
- Install the [Azure Artifacts Credential Provider](https://github.com/microsoft/artifacts-credprovider#azure-artifacts-credential-provider).
38
+
* Install the [Azure Artifacts Credential Provider](https://github.com/microsoft/artifacts-credprovider#azure-artifacts-credential-provider).
35
39
36
-
## Create Feed
40
+
## <aname = "create-feed"></a> Create a feed
37
41
38
42
[!INCLUDE [](includes/create-feed.md)]
39
43
40
-
## Connect to Feed
44
+
## Connect to a feed
41
45
42
46
::: moniker range="azure-devops"
43
47
44
-
1. Sign in to your Azure DevOps organization, and then navigate to your project.
48
+
1. Sign in to your Azure DevOps organization, and then go to your project.
45
49
46
50
1. Select **Artifacts**, and then select your feed from the dropdown menu.
47
51
48
-
1. Select **Connect to feed**, and then select **NuGet.exe** from the left navigation pane. If this is the first time using Azure Artifacts with Nuget.exe, ensure that you have installed all the prerequisites.
52
+
1. Select **Connect to Feed**, and then select **NuGet.exe** from the left pane. If this is your first time using Azure Artifacts with *Nuget.exe*, ensure that you installed all the prerequisites.
49
53
50
-
:::image type="content" source="./media/connect-to-feed-azure-devops-newnav.png" alt-text="A screenshot showing the connect to feed button.":::
54
+
:::image type="content" source="./media/connect-to-feed-azure-devops-newnav.png" alt-text="Screenshot that shows the button for connecting to a feed.":::
51
55
52
-
1. Follow the instructions provided in the **Project setup** section to configure your *nuget.config* file and authenticate with Azure Artifacts.
56
+
1. Follow the instructions in the **Project setup** section to configure your *nuget.config* file and authenticate with Azure Artifacts.
53
57
54
-
:::image type="content" source="./media/project-setup.png" alt-text="A screenshot showing how to set up your project.":::
58
+
:::image type="content" source="./media/project-setup.png" alt-text="Screenshot that shows onscreen instructions for setting up a project.":::
1. Sign in to your Azure DevOps server, and then navigate to your project.
64
+
1. Sign in to your Azure DevOps server, and then go to your project.
61
65
62
66
1. Select **Artifacts**, and then select your feed from the dropdown menu.
63
67
64
-
1. Select **Connect to Feed**, and then select **NuGet.exe** from the left.
68
+
1. Select **Connect to Feed**, and then select **NuGet.exe** from the left pane.
65
69
66
70
1. Follow the instructions in the **Project setup** section to connect to your feed.
67
71
68
-
:::image type="content" source="./media/connect-to-feed-nuget-server-2020.png" alt-text="A screenshot showing how to set up your NuGet project in Server 2020 and Server 2022.":::
72
+
:::image type="content" source="./media/connect-to-feed-nuget-server-2020.png" alt-text="Screenshot that shows onscreen instructions for setting up a NuGet project in Azure DevOps Server 2020 and 2022.":::
69
73
70
74
::: moniker-end
71
75
72
76
::: moniker range="azure-devops-2019"
73
77
74
-
1. Sign in to your Azure DevOps server, and then navigate to your project.
78
+
1. Sign in to your Azure DevOps server, and then go to your project.
75
79
76
80
1. Select **Artifacts**, and then select your feed from the dropdown menu.
77
81
78
-
1. Select **Connect to Feed**, and then select **NuGet** from the left.
82
+
1. Select **Connect to Feed**, and then select **NuGet** from the left pane.
79
83
80
-
1. Follow the instructions to add your package source URL to your *nuget.config*.
84
+
1. Follow the instructions to add your package source URL to *nuget.config*.
81
85
82
-
:::image type="content" source="./media/connect-to-feed-nuget-server-2019.png" alt-text="A screenshot showing how to set up your NuGet project in Server 2019.":::
86
+
:::image type="content" source="./media/connect-to-feed-nuget-server-2019.png" alt-text="Screenshot that shows onscreen instructions for setting up a NuGet project in Azure DevOps Server 2019.":::
83
87
84
88
::: moniker-end
85
89
@@ -96,14 +100,14 @@ In this article, you'll learn how to:
96
100
97
101
## Publish packages
98
102
99
-
Run the following command to publish your package to your feed. You can enter any string for the *ApiKey* argument.
103
+
To publish your package to your feed, run the following command. You can enter any string for the `ApiKey` argument.
Copy file name to clipboardExpand all lines: docs/artifacts/includes/create-feed.md
+30-13
Original file line number
Diff line number
Diff line change
@@ -9,57 +9,74 @@ ms.date: 03/15/2024
9
9
10
10
::: moniker range="azure-devops"
11
11
12
-
1. Sign in to your Azure DevOps organization, and then navigate to your project.
12
+
1. Sign in to your Azure DevOps organization, and then go to your project.
13
13
14
-
1. Select **Artifacts**, and then select **Create Feed** to create a new feed.
14
+
1. Select **Artifacts**, and then select **Create Feed**.
15
15
16
-
1. Enter a descriptive **Name** for your feed and define its **Visibility** (indicating who can view packages within the feed). Specify the **Scope** of your feed, and if you wish to include packages from public sources, mark the **Upstream sources** checkbox.
16
+
1. For **Name**, enter a descriptive name for your feed.
17
+
18
+
For **Visibility**, select an option to indicate who can view packages within the feed.
19
+
20
+
If you want to include packages from public sources, select the checkbox under **Upstream sources**.
21
+
22
+
For **Scope**, specify whether the scope of your feed is the project or the organization.
17
23
18
24
1. Select **Create** when you're done.
19
25
20
-
:::image type="content" source="../media/create-new-feed-azure-devops.png" alt-text="A screenshot showing how to create a new feed in Azure DevOps Services.":::
26
+
:::image type="content" source="../media/create-new-feed-azure-devops.png" alt-text="Screenshot that shows selections for creating a new feed in Azure DevOps Services.":::
1. Sign in to your Azure DevOps server, and then navigate to your project.
33
+
1. Sign in to your Azure DevOps server, and then go to your project.
34
+
35
+
2. Select **Artifacts**, and then select **Create Feed**.
27
36
28
-
2. Select**Artifacts**, and then select **Create Feed** to create a new feed.
37
+
3. For**Name**, enter a descriptive name for your feed.
29
38
30
-
3. Enter a descriptive **Name** for your feed and define its **Visibility** (indicating who can view packages within the feed). Specify the **Scope** of your feed, and if you wish to include packages from public sources, mark the **Upstream sources** checkbox.
39
+
For **Visibility**, select an option to indicate who can view packages within the feed.
40
+
41
+
If you want to include packages from public sources, select the checkbox under **Upstream sources**.
42
+
43
+
For **Scope**, specify whether the scope of your feed is the project or the organization.
31
44
32
45
::: moniker-end
33
46
34
47
::: moniker range="azure-devops-2022"
35
48
36
49
4. Select **Create** when you're done.
37
50
38
-
:::image type="content" source="../media/create-new-feed-server-2022.png" alt-text="A screenshot showing how to create a new feed in Azure DevOps 2022.":::
51
+
:::image type="content" source="../media/create-new-feed-server-2022.png" alt-text="Screenshot that shows selections for creating a new feed in Azure DevOps 2022.":::
39
52
40
53
::: moniker-end
41
54
42
55
::: moniker range="azure-devops-2020"
43
56
44
57
4. Select **Create** when you're done.
45
58
46
-
:::image type="content" source="../media/create-new-feed-server-2020.png" alt-text="A screenshot showing how to create a new feed in Azure DevOps 2020.":::
59
+
:::image type="content" source="../media/create-new-feed-server-2020.png" alt-text="Screenshot that shows selections for creating a new feed in Azure DevOps 2020.":::
47
60
48
61
::: moniker-end
49
62
50
63
::: moniker range="azure-devops-2019"
51
64
52
-
1. Sign in to your Azure DevOps server, and then navigate to your project.
65
+
1. Sign in to your Azure DevOps server, and then go to your project.
53
66
54
67
1. Select **Artifacts**, and then select **New feed**.
55
68
56
-
1. Enter a descriptive **Name** for your feed and define its **Visibility** (indicating who can view packages within the feed). If you wish to include packages from public sources, select the **Use packages from public sources through this feed** option.
69
+
1. For **Name**, enter a descriptive name for your feed.
70
+
71
+
For **Visibility**, select an option to indicate who can view packages within the feed.
72
+
73
+
If you want to include packages from public sources, select the **Use packages from public sources through this feed** option.
57
74
58
75
1. Select **Create** when you're done.
59
76
60
-
:::image type="content" source="../media/create-new-feed-server-2019.png" alt-text="A screenshot showing how to create a new feed in Azure DevOps 2019.":::
77
+
:::image type="content" source="../media/create-new-feed-server-2019.png" alt-text="Screenshot that shows selections for creating a new feed in Azure DevOps 2019.":::
61
78
62
79
::: moniker-end
63
80
64
81
> [!NOTE]
65
-
> By default, newly created feeds have their project's *Build Service* set to **Feed and Upstream Reader (Collaborator)**.
82
+
> By default, newly created feeds have their project's **Build Service** value set to **Feed and Upstream Reader (Collaborator)**.
Copy file name to clipboardExpand all lines: docs/artifacts/includes/nuget/consume.md
+9-9
Original file line number
Diff line number
Diff line change
@@ -14,44 +14,44 @@ ms.date: 05/15/2024
14
14
15
15
#### [Windows](#tab/windows/)
16
16
17
-
1. In Visual Studio, select **Tools**, and then**Options**.
17
+
1. In Visual Studio, select **Tools** >**Options**.
18
18
19
19
1. Expand the **NuGet Package Manager** section, and then select **Package Sources**.
20
20
21
-
1. Enter the feed's **Name** and the **Source** URL, and then select the green (+) sign to add a source.
21
+
1. Enter the feed's **Name**value and the **Source** URL, and then select the green plus sign (+) to add a source.
22
22
23
23
1. If you enabled upstream sources in your feed, clear the **nuget.org** checkbox.
24
24
25
25
1. Select **OK** when you're done.
26
26
27
-
:::image type="content" source="../../media/vs-addsource.png" alt-text="A screenshot showing how to set up visual studio in Windows.":::
27
+
:::image type="content" source="../../media/vs-addsource.png" alt-text="A screenshot that shows selections for setting up Visual Studio in Windows.":::
28
28
29
29
#### [macOS](#tab/macOS/)
30
30
31
31
1. Create a [personal access token](../../../organizations/accounts/use-personal-access-tokens-to-authenticate.md).
32
32
33
-
1. In visual studio, select **Preferences** from the menu bar.
33
+
1. In Visual Studio, on the menu bar, select **Preferences**.
34
34
35
35
1. Select **NuGet**, and then select **Sources**.
36
36
37
-
1. Select **Add** and enter your feed's name, the source URL, a userName (any string), and your personal access token.
37
+
1. Select **Add** and enter your feed's name, the source URL, a username (any string), and your personal access token.
38
38
39
39
1. Select **OK** to save your source.
40
40
41
41
1. If you enabled upstream sources in your feed, clear the **nuget.org** checkbox.
42
42
43
43
1. Select **OK** when you're done.
44
44
45
-
:::image type="content" source="../../media/vs-mac-settings.png" alt-text="A screenshot showing how to set up visual studio in macOS.":::
45
+
:::image type="content" source="../../media/vs-mac-settings.png" alt-text="A screenshot that shows selections for setting up Visual Studio in macOS.":::
46
46
47
47
---
48
48
49
49
#### 3. Download packages
50
50
51
-
1. In Visual Studio, right-click on your project, and then select **Manage NuGet Packages**.
51
+
1. In Visual Studio, right-click your project, and then select **Manage NuGet Packages**.
52
52
53
53
1. Select **Browse**, and then select your feed from the **Package source** dropdown menu.
54
-
55
-
:::image type="content" source="../../media/select-pkg-src.png" alt-text="A screenshot showing how to select your package source in Visual Studio.":::
54
+
55
+
:::image type="content" source="../../media/select-pkg-src.png" alt-text="Screenshot that shows selection of a package source in Visual Studio.":::
56
56
57
57
1. Use the search bar to search for packages from your feed.
0 commit comments