Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/pipelines/artifacts/caching-nuget.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ To lock your project's dependencies, add the **RestorePackagesWithLockFile** pro
</PropertyGroup>
```

> [!NOTE]
> It's also recommended to pin the version of the .NET SDK that's used so the SDK version and dependency graph stay in lockstep. See [global.json](/dotnet/core/tools/global-json) and especially the `rollForward` section with the `disable` value [global.json rollForward Policy](/dotnet/core/tools/global-json#rollforward). For related issues when not pinning, see [ASP.NET Core GitHub issue](https://github.com/dotnet/aspnetcore/issues/65061) and [.NET Core SDK GitHub issue](https://github.com/dotnet/sdk/issues/48795)

## Cache NuGet packages

To cache NuGet packages, define a pipeline variable that points to the location of the packages on the agent running the pipeline.
Expand Down