Skip to content

Commit 69816f7

Browse files
Merge pull request #8001 from MicrosoftDocs/pipelines/439147
Ubuntu dotnet
2 parents f8fccac + 0ddf622 commit 69816f7

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

docs/pipelines/packages/nuget-restore.md

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ With NuGet Package Restore you can install all your project's dependency without
2626
- If you're using a self-hosted agent, make sure that it has the [.NET Core SDK (2.1.400+)](https://dotnet.microsoft.com/en-us/download) and [NuGet (4.8.0.5385+)](https://www.nuget.org/downloads) installed.
2727

2828
> [!NOTE]
29-
> If you're using Ubuntu 24.04 or higher, you must use the `NuGetAuthenticate` task with the .NET CLI instead of the *nuget.exe*. See [Support for newer Ubuntu hosted images](/azure/devops/pipelines/tasks/reference/nuget-command-v2#support-for-newer-ubuntu-hosted-images) for more details.
29+
> If you're using Ubuntu 24.04 or later, you must use the `NuGetAuthenticate` task with the .NET CLI instead of the *nuget.exe*. See [Support for newer Ubuntu hosted images](/azure/devops/pipelines/tasks/reference/nuget-command-v2#support-for-newer-ubuntu-hosted-images) for more details.
3030
3131
## Restore NuGet packages from a feed in the same organization
3232

@@ -47,7 +47,7 @@ With NuGet Package Restore you can install all your project's dependency without
4747
versionSpec: '*'
4848
checkLatest: true
4949

50-
- script: nuget restore <SOLUTION_PATH>
50+
- script: nuget restore <SOLUTION_PATH> ## If you're using Ubuntu 24.04 or later, use the following command instead: dotnet restore <SOLUTION_PATH>
5151
```
5252
5353
### [Classic](#tab/classic/)
@@ -59,10 +59,7 @@ With NuGet Package Restore you can install all your project's dependency without
5959
1. Select **+** to add a new task. Add the *NuGet tool installer*, *NuGet Authenticate*, and *Command line* tasks to your pipeline. Leave the *NuGet tool installer* and *NuGet Authenticate* tasks with their default settings and configure the *Command line* task as follows:
6060
6161
- **Display name**: Restore.
62-
- **Script**:
63-
```
64-
nuget.exe restore <SOLUTION_PATH>
65-
```
62+
- **Script**: `nuget.exe restore <SOLUTION_PATH>`. If you're using Ubuntu 24.04 or later, use the following command instead: `dotnet restore <SOLUTION_PATH>`.
6663

6764
1. Select **Save & queue** when you're done.
6865

@@ -121,9 +118,7 @@ To restore NuGet packages from a feed in a different Azure DevOps organization,
121118
inputs:
122119
nuGetServiceConnections: <SERVICE_CONNECTION_NAME>
123120
124-
- script: |
125-
nuget.exe restore <SOLUTION_PATH>
126-
displayName: Restore
121+
- script: nuget.exe restore <SOLUTION_PATH> ## If you're using Ubuntu 24.04 or later, use the following command instead: dotnet restore <SOLUTION_PATH>
127122
```
128123

129124
### [Classic](#tab/classic/)
@@ -139,10 +134,7 @@ To restore NuGet packages from a feed in a different Azure DevOps organization,
139134

140135
1. Command line task:
141136
- **Display name**: Restore.
142-
- **Script**:
143-
```
144-
nuget.exe restore <SOLUTION_PATH>
145-
```
137+
- **Script**: `nuget.exe restore <SOLUTION_PATH>`. If you're using Ubuntu 24.04 or later, use the following command instead: `dotnet restore <SOLUTION_PATH>`.
146138

147139
1. Select **Save & queue** when you're done.
148140

0 commit comments

Comments
 (0)