Skip to content

Commit 58c1a2f

Browse files
authored
Merge branch 'main' into artifacts/362633
2 parents 21dee86 + 561e166 commit 58c1a2f

File tree

89 files changed

+1920
-388
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+1920
-388
lines changed

.openpublishing.publish.config.json

-6
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,6 @@
6262
"branch": "main",
6363
"branch_mapping": {}
6464
},
65-
{
66-
"path_to_root": "snippets",
67-
"url": "https://github.com/MicrosoftDocs/snippets-azure-devops-docs-pr",
68-
"branch": "master",
69-
"branch_mapping": {}
70-
},
7165
{
7266
"path_to_root": "docs/reusable-content",
7367
"url": "https://github.com/MicrosoftDocs/reusable-content",

docs/artifacts/nuget/dotnet-exe.md

+36-35
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,32 @@
11
---
2-
title: Publish and restore NuGet packages with dotnet CLI
3-
description: How to connect to a feed and use the dotnet CLI to publish and restore NuGet packages.
2+
title: Publish NuGet packages with dotnet CLI
3+
description: Learn how to connect to a feed and use the dotnet CLI to publish NuGet packages.
44
ms.assetid: CA2DCB9D-93FB-4E2D-B953-BF78D5687B35
55
ms.service: azure-devops-artifacts
66
ms.custom: devx-track-dotnet
7-
ms.topic: conceptual
8-
ms.date: 04/17/2024
7+
ms.topic: tutorial
8+
ms.date: 01/13/2025
99
monikerRange: '>= azure-devops-2020'
10-
"recommendations": "true"
1110
---
1211

13-
# Publish and restore NuGet packages from the command line (dotnet)
12+
# Publish NuGet packages from the command line (dotnet)
1413

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

17-
Azure Artifacts enables you to publish and restore your NuGet packages to and from your feed, allowing you to share them with others according to your feed's visibility settings. This guide walks you through configuring your project to publish or restore packages using the dotnet command-line interface.
16+
This guide walks you through configuring your project to publish NuGet packages using the dotnet command-line interface.
1817

1918
## Prerequisites
2019

21-
- 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.
20+
| **Product** | **Requirements** |
21+
|--------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
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). |
2223

23-
- An Azure Artifacts feed. [Create a new feed](../get-started-nuget.md#create-feed) if you don't have one already.
24-
25-
- Download and install the [Azure Artifacts Credential Provider](https://github.com/microsoft/artifacts-credprovider).
26-
27-
- Download and install [.NET Core SDK (2.1.400+)](https://dotnet.microsoft.com/en-us/download).
28-
29-
## Connect to feed
24+
## Connect to a feed
3025

3126
::: moniker range="azure-devops"
3227

28+
1. Sign in to your Azure DevOps organization, and then navigate to your project.
29+
3330
1. Select **Artifacts**, and then select your feed from the dropdown menu.
3431

3532
1. Select **Connect to feed**, and then select **dotnet** from the *NuGet* section on the left.
@@ -78,52 +75,56 @@ Azure Artifacts enables you to publish and restore your NuGet packages to and fr
7875

7976
::: moniker-end
8077

81-
## Publish packages
78+
## Publish packages to a feed in the same organization
8279

83-
Run the following command to publish a package to your feed. Replace the placeholders with the appropriate information:
80+
Run the following command to publish a package to your feed. Replace the placeholders with the appropriate values:
8481

8582
```CLI
8683
dotnet nuget push --source https://pkgs.dev.azure.com/<ORGANIZATION_NAME>/<PROJECT_NAME>/_packaging/<FEED_NAME>/nuget/v3/index.json --api-key <ANY_STRING> <PACKAGE_PATH>
8784
```
8885

89-
**Example**: *dotnet nuget push --source https://pkgs.dev.azure.com/MyOrg/MyProject/_packaging/MyFeed/nuget/v3/index.json --api-key AZ bin/MyPackage.5.0.2.nupkg*
86+
**Example**:
87+
88+
```CLI
89+
dotnet nuget push --source https://pkgs.dev.azure.com/MyOrg/MyProject/_packaging/MyFeed/nuget/v3/index.json --api-key AZ bin/MyPackage.5.0.2.nupkg
90+
```
91+
9092

9193
> [!NOTE]
92-
> The `api-key` is only used as a placeholder.
94+
> The `api-key` is required, but you can provide any string as its value when publishing to an Azure Artifacts feed.
9395
94-
## Publish packages from external sources
96+
## Publish packages to a feed in another organization
9597

96-
1. Create a [personal access token](../../organizations/accounts/use-personal-access-tokens-to-authenticate.md) (PAT) with **packaging read and write** scope.
98+
To publish your NuGet packages to a feed in a different Azure DevOps organization, you must first create a personal access token (PAT) in the target organization.
9799

98-
1. Replace the *<PERSONAL_ACCESS_TOKEN>* placeholder with your personal access token, and then run the following command to add your package source to your *nuget.config* file. This adds your PAT to your *nuget.config*. Make sure to store this file securely and not check it into source control.
100+
1. Navigate to the organization hosting the target feed and create a [personal access token](../../organizations/accounts/use-personal-access-tokens-to-authenticate.md) (PAT) with **Packaging** > **Read & write** scope.
101+
102+
1. Replace the *<PERSONAL_ACCESS_TOKEN>* placeholder with your personal access token, and then run the following command to add your package source to your *nuget.config* file. Ensure that this file is stored securely and is not checked into source control.
99103

100104
```CLI
101105
dotnet nuget add source https://pkgs.dev.azure.com/<ORGANIZATION_NAME>/<PROJECT_NAME>/_packaging/<FEED_NAME>/nuget/v3/index.json --name <SOURCE_NAME> --username <USER_NAME> --password <PERSONAL_ACCESS_TOKEN> --configfile <PATH_TO_NUGET_CONFIG_FILE>
102106
```
103107
104-
1. Publish your package:
108+
1. Run the following command to publish your package:
105109
106110
```CLI
107111
dotnet nuget push --source <SOURCE_NAME> --api-key <ANY_STRING> <PACKAGE_PATH>
108112
```
109113
110114
**Example**:
111-
*dotnet nuget add source https://pkgs.dev.azure.com/MyOrg/MyProject/_packaging/MyFeed/nuget/v3/index.json --name MySource --username MyUserName --password MyPersonalAccessToken --configfile ./nuget.config*
112-
*dotnet nuget push --source MySource --api-key AZ nupkgs/mypackage.1.1.0.nupkg*
113115
114-
> [!NOTE]
115-
> If your organization is using a firewall or a proxy server, make sure you allow the [Azure Artifacts Domain URLs and IP addresses](../../organizations/security/allow-list-ip-url.md#azure-artifacts).
116+
```CLI
117+
dotnet nuget add source https://pkgs.dev.azure.com/MyOrg/MyProject/_packaging/MyFeed/nuget/v3/index.json --name MySource --username MyUserName --password MyPersonalAccessToken --configfile ./nuget.config
116118
117-
## Restore packages
119+
dotnet nuget push --source MySource --api-key AZ nupkgs/mypackage.1.1.0.nupkg
120+
```
118121

119-
Run the following command to restore your packages. The `--interactive` flag is used to prompt the user for credentials:
122+
> [!NOTE]
123+
> If your organization is using a firewall or a proxy server, make sure you allow the [Azure Artifacts Domain URLs and IP addresses](../../organizations/security/allow-list-ip-url.md#azure-artifacts).
120124
121-
```CLI
122-
dotnet restore --interactive
123-
```
124125

125-
## Related articles
126+
## Related content
126127

127-
- [Connect to Azure Artifacts feeds (NuGet.exe)](./nuget-exe.md)
128+
- [Restore NuGet packages (dotnet)](restore-nuget-packages-dotnet.md)
128129
- [Publish packages with Azure Pipelines (YAML/Classic)](../../pipelines/artifacts/nuget.md)
129-
- [Use packages from NuGet Gallery](./upstream-sources.md)
130+
- [Use packages from NuGet.org](./upstream-sources.md)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
---
2+
title: Restore NuGet packages with dotnet CLI
3+
description: Learn how to connect to a feed and use the dotnet CLI to restore NuGet packages.
4+
ms.service: azure-devops-artifacts
5+
ms.topic: tutorial
6+
ms.date: 01/13/2025
7+
monikerRange: '>= azure-devops-2020'
8+
---
9+
10+
# Restore NuGet packages from the command line (dotnet)
11+
12+
[!INCLUDE [version-lt-eq-azure-devops](../../includes/version-lt-eq-azure-devops.md)]
13+
14+
This guide walks you through configuring your project and restoring your NuGet packages using the dotnet command-line interface.
15+
16+
## Prerequisites
17+
18+
| **Product** | **Requirements** |
19+
|--------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
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).<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). |
21+
22+
## Connect to a feed
23+
24+
::: moniker range="azure-devops"
25+
26+
1. Sign in to your Azure DevOps organization, and then navigate to your project.
27+
28+
1. Select **Artifacts**, and then select your feed from the dropdown menu.
29+
30+
1. Select **Connect to feed**, and then select **dotnet** from the *NuGet* section on the left.
31+
32+
1. Create a *nuget.config* file in the same folder as your *csproj* or *sln* file. Copy the following XML snippet and paste it into your new file, replacing the placeholders with the relevant information:
33+
34+
- Organization-scoped feed:
35+
36+
```xml
37+
<?xml version="1.0" encoding="utf-8"?>
38+
<configuration>
39+
<packageSources>
40+
<clear />
41+
<add key="<FEED_NAME>" value="https://pkgs.dev.azure.com/<ORGANIZATION_NAME>/_packaging/<FEED_NAME>/nuget/v3/index.json" />
42+
</packageSources>
43+
</configuration>
44+
```
45+
46+
- Project-scoped feed:
47+
48+
```xml
49+
<?xml version="1.0" encoding="utf-8"?>
50+
<configuration>
51+
<packageSources>
52+
<clear />
53+
<add key="<FEED_NAME>" value="https://pkgs.dev.azure.com/<ORGANIZATION_NAME>/<PROJECT_NAME>/_packaging/<FEED_NAME>/nuget/v3/index.json" />
54+
</packageSources>
55+
</configuration>
56+
```
57+
::: moniker-end
58+
59+
::: moniker range="azure-devops-2020 || azure-devops-2022"
60+
61+
> [!NOTE]
62+
> dotnet isn't supported in Azure DevOps Server 2019.
63+
64+
1. Sign in to your Azure DevOps server, and then navigate to your project.
65+
66+
1. Select **Artifacts**, and then select your feed.
67+
68+
1. Select **Connect to Feed**, and then select **dotnet** from the left navigation pane.
69+
70+
1. Follow the instructions in the **Project setup** section to connect to your feed.
71+
72+
:::image type="content" source="../media/connect-to-feed-dotnet-server-2020-and-2022.png" alt-text="A screenshot showing how to connect to a feed with dotnet in Azure DevOps Server 2020 and 2022." lightbox="../media/connect-to-feed-dotnet-server-2020-and-2022.png":::
73+
74+
::: moniker-end
75+
76+
## Restore packages
77+
78+
Run the following command to restore your packages. The `--interactive` flag is used to prompt the user for credentials:
79+
80+
```CLI
81+
dotnet restore --interactive
82+
```
83+
84+
## Related content
85+
86+
- [Publish NuGet packages (dotnet)](dotnet-exe.md)
87+
- [Publish packages with Azure Pipelines (YAML/Classic)](../../pipelines/artifacts/nuget.md)
88+
- [Use packages from NuGet.org](./upstream-sources.md)

docs/artifacts/toc.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,11 @@
4949
href: nuget/restore-nuget-packages-nuget-exe.md
5050
displayName: nuget, restore
5151
- name: Publish NuGet packages (dotnet)
52-
displayName: dotnet, artifacts, publish packages
5352
href: nuget/dotnet-exe.md
53+
displayName: dotnet, artifacts, publish packages
54+
- name: Restore NuGet packages (dotnet)
55+
href: nuget/restore-nuget-packages-dotnet.md
56+
displayName: dotnet, restore
5457
- name: Publish to a NuGet feed (YAML/Classic)
5558
displayName: nuget feed, nuget package, publish package, classic pipeline, yaml pipeline
5659
href: ../pipelines/artifacts/nuget.md?toc=/azure/devops/artifacts/toc.json

docs/artifacts/tutorials/share-packages-publicly.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Public feeds are project-scoped feeds in a public project. Public feeds inherit
4040
#### [NuGet](#tab/nuget)
4141

4242
- [Publish NuGet packages - (NuGet.exe)](../nuget/publish.md#publish-packages-to-a-feed-in-the-same-organization)
43-
- [Publish NuGet packages - (dotnet)](../nuget/dotnet-exe.md#publish-packages)
43+
- [Publish NuGet packages - (dotnet)](../nuget/dotnet-exe.md#publish-packages-to-a-feed-in-the-same-organization)
4444

4545
#### [Npm](#tab/npm)
4646

docs/boards/includes/feature-matrix-manage-queries.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ The following features provide support for working with query results, saving an
3636
[Open and run a query](../queries/view-run-query.md)
3737
[Publish/refresh a query (Excel)](../backlogs/office/bulk-add-modify-work-items-excel.md)
3838
[Run REST API queries](/rest/api/azure/devops/wit/queries)
39-
[Save queries](../queries/organize-queries.md#run-edit-and-save-a-query)
39+
[Copy and save queries](../queries/organize-queries.md#copy-edit-and-save-a-query)
4040
[Set query permissions](../queries/set-query-permissions.md)
4141
:::column-end:::
4242
:::row-end:::

docs/boards/queries/organize-queries.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ Organize your personal or shared queries by adding a query folder. You can then
4242
[!INCLUDE [temp](../includes/open-queries.md)]
4343

4444

45-
## Run, edit, and save a query
45+
## Copy, edit, and save a query
4646

47-
The easiest way to define a query is to start with an existing shared query.
48-
The following example shows how to find all closed bugs by modifying the
49-
*Active Bugs* shared query provided with the Agile process template. Examples are based on the user interface provided through the web portal.
47+
You can copy a query within the same project by selecting a query and saving it with a new name with the **Save as** option.
48+
49+
The easiest way to define a query is to start with an existing shared query. The following example shows how to find all closed bugs by modifying the *Active Bugs* shared query provided with the Agile process template. Examples are based on the user interface provided through the web portal.
5050

5151
#### [Browser](#tab/browser/)
5252

docs/boards/queries/query-index-quick-ref.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ You can list work items based on the following criteria...
169169
::: moniker range="azure-devops"
170170
- [Rename a query or query folder](organize-queries.md#rename-or-delete-a-query))
171171
- [Run a query](view-run-query.md)
172-
- [Save a query](organize-queries.md#run-edit-and-save-a-query)
172+
- [Copy and save a query](organize-queries.md#copy-edit-and-save-a-query)
173173
- [Set query permissions](set-query-permissions.md)
174174
- [Tree query](using-queries.md#use-a-work-item-tree-to-view-hierarchies)
175175
- [View a query](view-run-query.md)
@@ -181,7 +181,7 @@ You can list work items based on the following criteria...
181181
::: moniker range="< azure-devops"
182182
- [Rename a query or query folder](organize-queries.md#rename-or-delete-a-query)
183183
- [Run a query](using-queries.md)
184-
- [Save a query](organize-queries.md#run-edit-and-save-a-query)
184+
- [Copy and save a query](organize-queries.md#copy-edit-and-save-a-query)
185185
- [Save a query as a team favorite](organize-queries.md#save-a-query-as-a-team-favorite)
186186
- [Set query permissions](set-query-permissions.md)
187187
- [Tree query](using-queries.md#use-a-work-item-tree-to-view-hierarchies)

docs/includes/free-tier.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ ms.topic: include
33
---
44

55
- First five users free (Basic license)
6-
- **Azure Pipelines**
6+
- **Azure Pipelines:**
77
- One [Microsoft-hosted CI/CD](../pipelines/licensing/concurrent-jobs.md#how-much-do-parallel-jobs-cost) (one concurrent job, up to 30 hours per month)
88
- One self-hosted CI/CD concurrent job
99
- **Azure Boards:** Work item tracking and boards

docs/includes/qa-get-vsts-support.md

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11

22

3-
### How do I get help or support for Azure DevOps?
3+
#### Q: How do I get help or support for Azure DevOps?
44

5-
Choose from the following support options:
6-
7-
* Report a problem with Azure DevOps on [Developer Community](https://developercommunity.visualstudio.com/spaces/21/index.html).
8-
* Provide a suggestion on [Developer Community](https://developercommunity.visualstudio.com/content/idea/post.html?space=21)
9-
* Get advice on [Stack Overflow](https://stackoverflow.com/questions/tagged/vs-team-services)
10-
* View the archives of the [Azure DevOps forum](https://social.msdn.microsoft.com/Forums/home?forum=TFService) on MSDN
5+
A: See [Get support and provide feedback](../user-guide/provide-feedback.md).

docs/organizations/accounts/change-organization-location.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Find or change the region of your organization
2+
title: Find or change the geography of your organization
33
titleSuffix: Azure DevOps Services
44
ms.custom: references_regions
55
description: Find your organization's default location or update your organization's region in Azure DevOps.
@@ -8,7 +8,7 @@ ms.assetid: cc4fd0d6-b24f-48ec-8b90-8e5f18e18d65
88
ms.topic: conceptual
99
ms.author: chcomley
1010
author: chcomley
11-
ms.date: 10/22/2024
11+
ms.date: 01/15/2025
1212
monikerRange: 'azure-devops'
1313
---
1414

@@ -19,7 +19,7 @@ monikerRange: 'azure-devops'
1919
When you [create an organization](create-organization.md) in Azure DevOps, you can choose the geography where your organization gets hosted. You might select your organization's geography based on locality, network latency, or sovereignty requirements for data centers. The default location for your organization is determined by the closest [Microsoft Azure geography](https://azure.microsoft.com/regions) where Azure DevOps is available.
2020

2121
> [!WARNING]
22-
> We're temporarily unable to process migration requests until January 13, 2025. We apologize for any inconvenience and appreciate your understanding. Migration requests will resume January 14.
22+
> We're temporarily unable to process migration requests. We apologize for any inconvenience and appreciate your understanding.
2323
2424
## Find your organization geography
2525

0 commit comments

Comments
 (0)