Skip to content

Commit b05fa1e

Browse files
authored
Merge pull request #6763 from ShawnJackson/get-started-nuget
[AQ] edit pass: get-started-nuget
2 parents 581e649 + 03ec075 commit b05fa1e

File tree

4 files changed

+78
-59
lines changed

4 files changed

+78
-59
lines changed

docs/artifacts/get-started-nuget.md

+32-28
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: Get started with NuGet packages and Azure Artifacts
3-
description: How to use Azure Artifacts to publish and download NuGet packages from your feed.
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.
44
ms.service: azure-devops-artifacts
55
ms.topic: quickstart
66
ms.author: rabououn
@@ -11,75 +11,79 @@ monikerRange: '<= azure-devops'
1111
"recommendations": "true"
1212
---
1313

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

1616
[!INCLUDE [version-lt-eq-azure-devops](../includes/version-lt-eq-azure-devops.md)]
1717

18-
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:
1919

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.
2122

22-
> [!div class="checklist"]
23+
In this quickstart, you learn how to:
24+
25+
> [!div class="checklist"]
26+
>
2327
> * Create a new feed.
2428
> * Set up your project and connect to your feed.
2529
> * Publish NuGet packages.
2630
> * Download packages from your feed.
2731
2832
## Prerequisites
2933

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.
3135

32-
- Install the [latest NuGet version](https://www.nuget.org/downloads).
36+
* Install the [latest NuGet version](https://www.nuget.org/downloads).
3337

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).
3539

36-
## Create Feed
40+
## <a name = "create-feed"></a> Create a feed
3741

3842
[!INCLUDE [](includes/create-feed.md)]
3943

40-
## Connect to Feed
44+
## Connect to a feed
4145

4246
::: moniker range="azure-devops"
4347

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.
4549

4650
1. Select **Artifacts**, and then select your feed from the dropdown menu.
4751

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.
4953

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.":::
5155

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.
5357

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.":::
5559

5660
::: moniker-end
5761

5862
::: moniker range="azure-devops-2020 || azure-devops-2022"
5963

60-
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.
6165

6266
1. Select **Artifacts**, and then select your feed from the dropdown menu.
6367

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.
6569

6670
1. Follow the instructions in the **Project setup** section to connect to your feed.
6771

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.":::
6973

7074
::: moniker-end
7175

7276
::: moniker range="azure-devops-2019"
7377

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.
7579

7680
1. Select **Artifacts**, and then select your feed from the dropdown menu.
7781

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.
7983

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*.
8185

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.":::
8387

8488
::: moniker-end
8589

@@ -96,14 +100,14 @@ In this article, you'll learn how to:
96100

97101
## Publish packages
98102

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.
100104

101105
```Command
102106
nuget.exe push -Source <SOURCE_NAME> -ApiKey key <PACKAGE_PATH>
103107
```
104108

105-
## Related articles
109+
## Related content
106110

107-
- [Publish NuGet packages with Azure Pipelines (YAML/Classic)](../pipelines/artifacts/nuget.md)
108-
- [Publish packages to NuGet.org](./nuget/publish-to-nuget-org.md)
109-
- [Use packages from NuGet Gallery](./nuget/upstream-sources.md)
111+
* [Publish NuGet packages with Azure Pipelines (YAML/classic)](../pipelines/artifacts/nuget.md)
112+
* [Publish packages to NuGet.org](./nuget/publish-to-nuget-org.md)
113+
* [Use packages from NuGet Gallery](./nuget/upstream-sources.md)

docs/artifacts/includes/create-feed.md

+30-13
Original file line numberDiff line numberDiff line change
@@ -9,57 +9,74 @@ ms.date: 03/15/2024
99

1010
::: moniker range="azure-devops"
1111

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.
1313

14-
1. Select **Artifacts**, and then select **Create Feed** to create a new feed.
14+
1. Select **Artifacts**, and then select **Create Feed**.
1515

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.
1723

1824
1. Select **Create** when you're done.
1925

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.":::
27+
>>>>>>> main
2128
2229
::: moniker-end
2330

2431
::: moniker range="azure-devops-2022 || azure-devops-2020"
2532

26-
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**.
2736

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.
2938

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.
3144

3245
::: moniker-end
3346

3447
::: moniker range="azure-devops-2022"
3548

3649
4. Select **Create** when you're done.
3750

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.":::
3952

4053
::: moniker-end
4154

4255
::: moniker range="azure-devops-2020"
4356

4457
4. Select **Create** when you're done.
4558

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.":::
4760

4861
::: moniker-end
4962

5063
::: moniker range="azure-devops-2019"
5164

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.
5366

5467
1. Select **Artifacts**, and then select **New feed**.
5568

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.
5774

5875
1. Select **Create** when you're done.
5976

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.":::
6178

6279
::: moniker-end
6380

6481
> [!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)**.

docs/artifacts/includes/nuget/consume.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -14,44 +14,44 @@ ms.date: 05/15/2024
1414

1515
#### [Windows](#tab/windows/)
1616

17-
1. In Visual Studio, select **Tools**, and then **Options**.
17+
1. In Visual Studio, select **Tools** > **Options**.
1818

1919
1. Expand the **NuGet Package Manager** section, and then select **Package Sources**.
2020

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.
2222

2323
1. If you enabled upstream sources in your feed, clear the **nuget.org** checkbox.
2424

2525
1. Select **OK** when you're done.
2626

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.":::
2828

2929
#### [macOS](#tab/macOS/)
3030

3131
1. Create a [personal access token](../../../organizations/accounts/use-personal-access-tokens-to-authenticate.md).
3232

33-
1. In visual studio, select **Preferences** from the menu bar.
33+
1. In Visual Studio, on the menu bar, select **Preferences**.
3434

3535
1. Select **NuGet**, and then select **Sources**.
3636

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.
3838

3939
1. Select **OK** to save your source.
4040

4141
1. If you enabled upstream sources in your feed, clear the **nuget.org** checkbox.
4242

4343
1. Select **OK** when you're done.
4444

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.":::
4646

4747
---
4848

4949
#### 3. Download packages
5050

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**.
5252

5353
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.":::
5656

5757
1. Use the search bar to search for packages from your feed.

docs/artifacts/includes/nuget/nuget-consume-endpoint.md

+7-9
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,22 @@ ms.date: 05/15/2024
99

1010
::: moniker range="azure-devops-2019"
1111

12-
1. Sign in to your Azure DevOps server, and then navigate to your project.
12+
1. Sign in to your Azure DevOps server, and then go to your project.
1313

14-
1. Select **Artifacts**, select your feed from the dropdown menu, and then select **Connect to feed**.
14+
1. Select **Artifacts**, select your feed from the dropdown menu, and then select **Connect to Feed**.
1515

16-
1. Select **NuGet** from the left, and then copy your **Package source URL**.
16+
1. Select **NuGet** from the left pane, and then copy your **Package source URL** value.
1717

1818
::: moniker-end
1919

2020
::: moniker range="> azure-devops-2019"
2121

22-
1. Sign in to your Azure DevOps, and then navigate to your project.
22+
1. Sign in to your Azure DevOps server, and then go to your project.
2323

24-
1. Select **Artifacts**, select your feed from the dropdown menu, and then select **Connect to feed**.
24+
1. Select **Artifacts**, select your feed from the dropdown menu, and then select **Connect to Feed**.
2525

26-
1. Select **Visual Studio** from the left navigation panel, and then copy your **Source** URL.
26+
1. Select **Visual Studio** from the left pane, and then copy your **Source** URL.
2727

28-
:::image type="content" source="../../media/nuget-visual-studio-newnav.png" alt-text="A screenshot showing the source URL.":::
28+
:::image type="content" source="../../media/nuget-visual-studio-newnav.png" alt-text="Screenshot that shows a source URL.":::
2929

3030
::: moniker-end
31-
32-

0 commit comments

Comments
 (0)