Skip to content

Commit c1237e0

Browse files
committed
Merged main into live
2 parents 019a8f9 + 3dc80ba commit c1237e0

20 files changed

+65
-73
lines changed
Lines changed: 43 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,31 @@
11
---
2-
title: "Quickstart: Get started with NuGet packages and Azure Artifacts"
3-
description: Learn how to use Azure Artifacts to publish and download NuGet packages from your feed.
2+
title: Publish and download NuGet packages with Azure Artifacts
3+
description: Learn how to use Azure Artifacts to publish and download NuGet packages.
44
ms.service: azure-devops-artifacts
55
ms.topic: quickstart
66
ms.author: rabououn
77
author: ramiMSFT
88
ms.assetid: C5112218-DA7E-4016-986D-2D0F70DAFA44
9-
ms.date: 05/14/2024
9+
ms.date: 06/20/2025
1010
monikerRange: '>= azure-devops-2020'
1111
"recommendations": "true"
1212
---
1313

14-
# Quickstart: Get started with NuGet packages in Azure Artifacts
14+
# Publish and download NuGet packages with Azure Artifacts
1515

16-
[!INCLUDE [version-gt-eq-2020](../includes/version-gt-eq-2020.md)]]
16+
[!INCLUDE [version-gt-eq-2020](../includes/version-gt-eq-2020.md)]
1717

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:
18+
Azure Artifacts enables developers to publish and download NuGet packages from feeds or public registries. Feeds can be either private, allowing you to share packages with specific users, or public, making your packages accessible to anyone on the internet.
1919

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.
22-
23-
In this quickstart, you learn how to:
24-
25-
> [!div class="checklist"]
26-
>
27-
> * Create a new feed.
28-
> * Set up your project and connect to your feed.
29-
> * Publish NuGet packages.
30-
> * Download packages from your feed.
20+
This article guides you through creating a feed, configuring your project, and publishing and downloading NuGet packages.
3121

3222
## Prerequisites
3323

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.
35-
36-
* Install the [latest NuGet version](https://www.nuget.org/downloads).
37-
38-
* Install the [Azure Artifacts Credential Provider](https://github.com/microsoft/artifacts-credprovider#azure-artifacts-credential-provider).
24+
| **Product** | **Requirements** |
25+
|--------------------|--------------------|
26+
| **Azure DevOps** | - An Azure DevOps [organization](../organizations/accounts/create-organization.md).<br>- An Azure DevOps [project](../organizations/projects/create-project.md).<br> - Download and install the [Azure Artifacts Credential Provider](https://github.com/microsoft/artifacts-credprovider).<br> - Install the [latest NuGet version](https://www.nuget.org/downloads). |
3927

40-
## <a name = "create-feed"></a> Create a feed
28+
## Create a feed
4129

4230
[!INCLUDE [](includes/create-feed.md)]
4331

@@ -49,13 +37,11 @@ In this quickstart, you learn how to:
4937

5038
1. Select **Artifacts**, and then select your feed from the dropdown menu.
5139

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.
40+
1. Select **Connect to Feed**, and then select **NuGet.exe** from the left navigation pane. If this is your first time using Azure Artifacts with *Nuget.exe*, make sure you've installed the prerequisites.
5341

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.":::
42+
1. Follow the provided instructions under the **Project setup** section to set up your *nuget.config* file and connect to your Azure Artifacts feed.
5543

56-
1. Follow the instructions in the **Project setup** section to configure your *nuget.config* file and authenticate with Azure Artifacts.
57-
58-
:::image type="content" source="./media/project-setup.png" alt-text="Screenshot that shows onscreen instructions for setting up a project.":::
44+
:::image type="content" source="./media/project-setup.png" alt-text="A screenshot displaying how to set up your project and connect to your feed in Azure DevOps Services.":::
5945

6046
::: moniker-end
6147

@@ -65,42 +51,31 @@ In this quickstart, you learn how to:
6551

6652
1. Select **Artifacts**, and then select your feed from the dropdown menu.
6753

68-
1. Select **Connect to Feed**, and then select **NuGet.exe** from the left pane.
69-
70-
1. Follow the instructions in the **Project setup** section to connect to your feed.
54+
1. Select **Connect to Feed**, and then select **NuGet.exe** from the left navigation pane.
7155

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.":::
56+
1. Follow the provided instructions under the **Project setup** section to set up your *nuget.config* file and connect to your Azure Artifacts feed.
7357

74-
::: moniker-end
75-
76-
## Download packages
77-
78-
[!INCLUDE [](includes/nuget/consume.md)]
79-
80-
::: moniker range="azure-devops"
81-
82-
> [!NOTE]
83-
> Using NuGet Package Explorer to search for packages in upstream sources is not supported.
58+
:::image type="content" source="./media/connect-to-feed-nuget-server-2020.png" alt-text="A screenshot displaying how to set up your project and connect to your feed in Azure DevOps Server 2020 and 2022.":::
8459

8560
::: moniker-end
8661

87-
## Publish packages
62+
## Publish packages to your feed
8863

89-
To publish your package to your feed, run the following command. You can enter any string for the `ApiKey` argument.
64+
To publish a package to your feed, run the following command. The `ApiKey` parameter is required, but you can use any arbitrary string as its value.
9065

91-
```Command
66+
```CLI
9267
nuget.exe push -Source <SOURCE_NAME> -ApiKey key <PACKAGE_PATH>
9368
```
9469

95-
**Examples:**
70+
#### Examples
9671

97-
- Project-scoped feed:
72+
- **Project-scoped feed**:
9873

9974
```CLI
10075
nuget.exe push -Source https://pkgs.dev.azure.com/myOrganization/MyProject/_packaging/MyFeed/nuget/v3/index.json -ApiKey AZ release/myDemoPackage.1.0.0.nupkg
10176
```
10277
103-
- Organization-scoped feed:
78+
- **Organization-scoped feed**:
10479
10580
```CLI
10681
nuget.exe push -Source https://pkgs.dev.azure.com/myOrganization/_packaging/myFeed/nuget/v3/index.json -ApiKey AZ release/myDemoPackage.1.0.0.nupkg
@@ -109,8 +84,25 @@ nuget.exe push -Source <SOURCE_NAME> -ApiKey key <PACKAGE_PATH>
10984
> [!NOTE]
11085
> The `ApiKey` is required, but you can use any arbitrary value when publishing to Azure Artifacts feeds.
11186
87+
## Download packages from your feed
88+
89+
To restore packages from your feed, run the following command in your project directory:
90+
91+
```CLI
92+
nuget.exe restore
93+
```
94+
95+
::: moniker range="azure-devops"
96+
97+
> [!NOTE]
98+
> Searching for packages in upstream sources using the NuGet Package Explorer is not supported.
99+
100+
::: moniker-end
101+
112102
## Related content
113103

114-
* [Publish NuGet packages with Azure Pipelines (YAML/classic)](../pipelines/artifacts/nuget.md)
115-
* [Publish packages to NuGet.org](./nuget/publish-to-nuget-org.md)
116-
* [Use packages from NuGet Gallery](./nuget/upstream-sources.md)
104+
- [Publish NuGet packages with Azure Pipelines (YAML/classic)](../pipelines/artifacts/nuget.md)
105+
106+
- [Publish packages to NuGet.org](nuget/publish-to-nuget-org.md)
107+
108+
- [Use packages from NuGet Gallery](nuget/upstream-sources.md)

docs/artifacts/maven/project-setup-gradle.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Azure Artifacts enables developers to manage project dependencies from a single
2020

2121
| **Product** | **Requirements** |
2222
|--------------------|----------------------------------------|
23-
| **Azure DevOps** | - An Azure DevOps [organization](../../organizations/accounts/create-organization.md).<br>- An Azure DevOps [project](../../organizations/projects/create-project.md).<br> - An Azure Artifacts [feed](../get-started-nuget.md#create-feed).<br> - Download and install [Gradle](https://docs.gradle.org/current/userguide/installation.html). |
23+
| **Azure DevOps** | - An Azure DevOps [organization](../../organizations/accounts/create-organization.md).<br>- An Azure DevOps [project](../../organizations/projects/create-project.md).<br> - An Azure Artifacts [feed](../get-started-nuget.md#create-a-feed).<br> - Download and install [Gradle](https://docs.gradle.org/current/userguide/installation.html). |
2424

2525
## Project setup
2626

docs/artifacts/maven/project-setup-maven.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Azure Artifacts enables developers to publish and restore Maven packages from fe
1919

2020
| **Product** | **Requirements** |
2121
|--------------------|----------------------------------------|
22-
| **Azure DevOps** | - An Azure DevOps [organization](../../organizations/accounts/create-organization.md).<br>- An Azure DevOps [project](../../organizations/projects/create-project.md).<br> - An Azure Artifacts [feed](../get-started-nuget.md#create-feed).<br> - [Download](https://maven.apache.org/download.cgi) and [Install](https://maven.apache.org/install.html) Apache Maven. |
22+
| **Azure DevOps** | - An Azure DevOps [organization](../../organizations/accounts/create-organization.md).<br>- An Azure DevOps [project](../../organizations/projects/create-project.md).<br> - An Azure Artifacts [feed](../get-started-nuget.md#create-a-feed).<br> - [Download](https://maven.apache.org/download.cgi) and [Install](https://maven.apache.org/install.html) Apache Maven. |
2323

2424
## Project setup
2525

docs/artifacts/npm/publish.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ This article guides you through authenticating with your Azure Artifacts feed an
2020

2121
| **Product** | **Requirements** |
2222
|--------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
23-
| **Azure DevOps** | - An Azure DevOps [organization](../../organizations/accounts/create-organization.md).<br>- An Azure DevOps [project](../../organizations/projects/create-project.md).<br> - An Azure Artifacts [feed](../get-started-nuget.md#create-feed).<br> - [Download and install Node.js and npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm). |
23+
| **Azure DevOps** | - An Azure DevOps [organization](../../organizations/accounts/create-organization.md).<br>- An Azure DevOps [project](../../organizations/projects/create-project.md).<br> - An Azure Artifacts [feed](../get-started-nuget.md#create-a-feed).<br> - [Download and install Node.js and npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm). |
2424

2525
## Get the tools
2626

docs/artifacts/npm/restore-npm-packages.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ This article guides you through authenticating with your Azure Artifacts feed an
1717

1818
| **Product** | **Requirements** |
1919
|--------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
20-
| **Azure DevOps** | - An Azure DevOps [organization](../../organizations/accounts/create-organization.md).<br>- An Azure DevOps [project](../../organizations/projects/create-project.md).<br> - An Azure Artifacts [feed](../get-started-nuget.md#create-feed). |
20+
| **Azure DevOps** | - An Azure DevOps [organization](../../organizations/accounts/create-organization.md).<br>- An Azure DevOps [project](../../organizations/projects/create-project.md).<br> - An Azure Artifacts [feed](../get-started-nuget.md#create-a-feed). |
2121

2222
## Get the tools
2323

docs/artifacts/nuget/dotnet-exe.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This guide walks you through configuring your project to publish NuGet packages
1919

2020
| **Product** | **Requirements** |
2121
|--------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
22-
| **Azure DevOps** | - An Azure DevOps [organization](../../organizations/accounts/create-organization.md).<br>- An Azure DevOps [project](../../organizations/projects/create-project.md).<br> - An Azure Artifacts [feed](../get-started-nuget.md#create-feed).<br> - Download and install the [Azure Artifacts Credential Provider](https://github.com/microsoft/artifacts-credprovider).<br> - Download and install [.NET Core SDK (2.1.400+)](https://dotnet.microsoft.com/en-us/download). |
22+
| **Azure DevOps** | - An Azure DevOps [organization](../../organizations/accounts/create-organization.md).<br>- An Azure DevOps [project](../../organizations/projects/create-project.md).<br> - An Azure Artifacts [feed](../get-started-nuget.md#create-a-feed).<br> - Download and install the [Azure Artifacts Credential Provider](https://github.com/microsoft/artifacts-credprovider).<br> - Download and install [.NET Core SDK (2.1.400+)](https://dotnet.microsoft.com/en-us/download). |
2323

2424
## Connect to a feed
2525

docs/artifacts/nuget/dotnet-setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Azure Artifacts enables developers to seamlessly publish packages to feeds and s
1919

2020
| **Product** | **Requirements** |
2121
|--------------------|----------------------------------------|
22-
| **Azure DevOps** | - An Azure DevOps [organization](../../organizations/accounts/create-organization.md).<br>- An Azure DevOps [project](../../organizations/projects/create-project.md).<br> - An Azure Artifacts [feed](../get-started-nuget.md#create-feed).<br> - Download and install the [Azure Artifacts Credential Provider](https://github.com/microsoft/artifacts-credprovider).<br> - Download and install the [.NET Core SDK](https://dotnet.microsoft.com/en-us/download). |
22+
| **Azure DevOps** | - An Azure DevOps [organization](../../organizations/accounts/create-organization.md).<br>- An Azure DevOps [project](../../organizations/projects/create-project.md).<br> - An Azure Artifacts [feed](../get-started-nuget.md#create-a-feed).<br> - Download and install the [Azure Artifacts Credential Provider](https://github.com/microsoft/artifacts-credprovider).<br> - Download and install the [.NET Core SDK](https://dotnet.microsoft.com/en-us/download). |
2323

2424
## Connect to a feed
2525

docs/artifacts/nuget/install-nuget-packages-with-visual-studio.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This article guides you through setting up your Visual Studio to install NuGet p
1919

2020
| **Product** | **Requirements** |
2121
|--------------------|---------------------|
22-
| **Azure DevOps** | - An Azure DevOps [organization](../../organizations/accounts/create-organization.md).<br>- An Azure DevOps [project](../../organizations/projects/create-project.md).<br> - An Azure Artifacts [feed](../get-started-nuget.md#create-feed). |
22+
| **Azure DevOps** | - An Azure DevOps [organization](../../organizations/accounts/create-organization.md).<br>- An Azure DevOps [project](../../organizations/projects/create-project.md).<br> - An Azure Artifacts [feed](../get-started-nuget.md#create-a-feed). |
2323
| **Other** | - Download [Visual Studio](https://visualstudio.microsoft.com/downloads/). |
2424

2525
## Get the source URL

docs/artifacts/nuget/move-from-fileshares.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ If you want to replicate your existing file share permissions, make a note of th
8080

8181
After completing the inventory of your current package sources, it's time to configure your feeds. In this step, we'll assume a one-to-one mapping of feeds to SMB shares.
8282

83-
For each SMB share, follow the instructions to [Create a feed](../get-started-nuget.md#create-feed):
83+
For each SMB share, follow the instructions to [Create a feed](../get-started-nuget.md#create-a-feed):
8484

8585
- Set the **Feed name** to match the name of your SMB share folder.
8686

docs/artifacts/nuget/nuget-exe.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Azure Artifacts enables developers to download NuGet packages from various sourc
1919

2020
| **Product** | **Requirements** |
2121
|--------------------|----------------------------------------|
22-
| **Azure DevOps** | - An Azure DevOps [organization](../../organizations/accounts/create-organization.md).<br>- An Azure DevOps [project](../../organizations/projects/create-project.md).<br> - An Azure Artifacts [feed](../get-started-nuget.md#create-feed).<br> - Download and install the [Azure Artifacts Credential Provider](https://github.com/microsoft/artifacts-credprovider).<br> - Install the latest [NuGet version](https://www.nuget.org/downloads). |
22+
| **Azure DevOps** | - An Azure DevOps [organization](../../organizations/accounts/create-organization.md).<br>- An Azure DevOps [project](../../organizations/projects/create-project.md).<br> - An Azure Artifacts [feed](../get-started-nuget.md#create-a-feed).<br> - Download and install the [Azure Artifacts Credential Provider](https://github.com/microsoft/artifacts-credprovider).<br> - Install the latest [NuGet version](https://www.nuget.org/downloads). |
2323

2424
## Project setup
2525

0 commit comments

Comments
 (0)