You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/pipelines/packages/nuget-restore.md
+5-13Lines changed: 5 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ With NuGet Package Restore you can install all your project's dependency without
26
26
- 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.
27
27
28
28
> [!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.
30
30
31
31
## Restore NuGet packages from a feed in the same organization
32
32
@@ -47,7 +47,7 @@ With NuGet Package Restore you can install all your project's dependency without
47
47
versionSpec: '*'
48
48
checkLatest: true
49
49
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>
51
51
```
52
52
53
53
### [Classic](#tab/classic/)
@@ -59,10 +59,7 @@ With NuGet Package Restore you can install all your project's dependency without
59
59
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:
60
60
61
61
- **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>`.
66
63
67
64
1. Select **Save & queue** when you're done.
68
65
@@ -121,9 +118,7 @@ To restore NuGet packages from a feed in a different Azure DevOps organization,
- script: nuget.exe restore <SOLUTION_PATH> ## If you're using Ubuntu 24.04 or later, use the following command instead: dotnet restore <SOLUTION_PATH>
127
122
```
128
123
129
124
### [Classic](#tab/classic/)
@@ -139,10 +134,7 @@ To restore NuGet packages from a feed in a different Azure DevOps organization,
139
134
140
135
1. Command line task:
141
136
- **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>`.
0 commit comments