Skip to content

Commit e602d34

Browse files
authored
Re-enable package caching (Azure#24015)
1 parent 2f95eee commit e602d34

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed
Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
# All required SDKs/runtimes are available on DevOps agents
2-
steps: []
3-
# Installation steps need to be uncommented when switching to a newer SDK that's not available on DevOps agents
4-
# parameters:
5-
# NuGetCacheKey: 'Build'
1+
parameters:
2+
NuGetCacheKey: 'Build'
63

7-
# steps:
4+
steps:
5+
# Installation steps need to be uncommented when switching to a newer SDK that's not available on DevOps agents
86
# - task: UseDotNet@2
97
# displayName: 'Use .NET Core SDK'
108
# inputs:
@@ -16,8 +14,8 @@ steps: []
1614
# inputs:
1715
# packageType: runtime
1816
# version: "3.1.x"
19-
# - task: Cache@2
20-
# inputs:
21-
# key: 'nuget | "$(Agent.OS)" | $(Build.SourcesDirectory)/eng/Packages.Data.props | ${{parameters.NuGetCacheKey}}'
22-
# path: $(NUGET_PACKAGES)
23-
# displayName: Cache NuGet packages
17+
- task: Cache@2
18+
inputs:
19+
key: 'nuget | "$(Agent.OS)" | $(Build.SourcesDirectory)/eng/Packages.Data.props | ${{parameters.NuGetCacheKey}}'
20+
path: $(NUGET_PACKAGES)
21+
displayName: Cache NuGet packages

0 commit comments

Comments
 (0)