Skip to content

Commit 9b13e15

Browse files
author
Rami Bououni
committed
acro score
1 parent ae9d58c commit 9b13e15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/pipelines/artifacts/caching-nuget.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ With pipeline caching, you can reduce your build time by caching your dependenci
2020
2121
## Lock dependencies
2222

23-
To set up the cache task, we must first lock our project's dependencies and create a **package.lock.json** file. We'll use the hash of the content of this file to generate a unique key for our cache.
23+
To set up the cache task, you must first lock your project's dependencies and create a **package.lock.json** file. The hash of the lock file's content will be used to generate a unique cache key.
2424

2525
To lock your project's dependencies, set the **RestorePackagesWithLockFile** property in your *csproj* file to **true**. NuGet restore generates a lock file **packages.lock.json** at the root directory of your project. Make sure you check your **packages.lock.json** file into your source code.
2626

@@ -34,7 +34,7 @@ To lock your project's dependencies, set the **RestorePackagesWithLockFile** pro
3434

3535
We need to create a pipeline variable to point to the location of our packages on the agent running the pipeline.
3636

37-
In this example, the content of the **packages.lock.json** will be hashed to produce a dynamic cache key. This ensures that every time the file is modified, a new cache key is generated.
37+
In this example, the content of the **packages.lock.json** is hashed to produce a dynamic cache key. This ensures that every time the file is modified, a new cache key is generated.
3838

3939
:::image type="content" source="media/cache-key-hash.png" alt-text="A screenshot showing how the cache key is generated in Azure Pipelines.":::
4040

0 commit comments

Comments
 (0)