Skip to content

Commit 3af98ab

Browse files
author
Rami Bououni
committed
ubuntu dotnet
1 parent f1fbf16 commit 3af98ab

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

docs/pipelines/packages/nuget-restore.md

Lines changed: 6 additions & 12 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,8 +118,8 @@ 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>
121+
- script: | ## If you're using Ubuntu 24.04 or later, use the following command instead: dotnet restore <SOLUTION_PATH>
122+
nuget.exe restore <SOLUTION_PATH>
126123
displayName: Restore
127124
```
128125

@@ -139,10 +136,7 @@ To restore NuGet packages from a feed in a different Azure DevOps organization,
139136

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

147141
1. Select **Save & queue** when you're done.
148142

0 commit comments

Comments
 (0)