@@ -27,6 +27,11 @@ stages:
2727 strategy :
2828 parallel : 2
2929 steps :
30+ - task : Cache@2
31+ inputs :
32+ key : $(Agent.OS) | **/global.json, **/*.csproj
33+ restoreKeys : $(Agent.OS)
34+ path : $(Pipeline.Workspace)/../../.nuget/packages
3035 - task : CmdLine@2
3136 inputs :
3237 script : ' ./build.cmd Restore Compile Test --skip --partition $(System.JobPositionInPhase)/2'
@@ -42,6 +47,11 @@ stages:
4247 displayName : ' 📦 Pack'
4348 dependsOn : [ ]
4449 steps :
50+ - task : Cache@2
51+ inputs :
52+ key : $(Agent.OS) | **/global.json, **/*.csproj
53+ restoreKeys : $(Agent.OS)
54+ path : $(Pipeline.Workspace)/../../.nuget/packages
4555 - task : CmdLine@2
4656 inputs :
4757 script : ' ./build.cmd Restore Compile Pack --skip'
@@ -65,6 +75,11 @@ stages:
6575 strategy :
6676 parallel : 2
6777 steps :
78+ - task : Cache@2
79+ inputs :
80+ key : $(Agent.OS) | **/global.json, **/*.csproj
81+ restoreKeys : $(Agent.OS)
82+ path : $(Pipeline.Workspace)/../../.nuget/packages
6883 - task : CmdLine@2
6984 inputs :
7085 script : ' ./build.cmd Restore Compile Test --skip --partition $(System.JobPositionInPhase)/2'
@@ -80,6 +95,11 @@ stages:
8095 displayName : ' 📦 Pack'
8196 dependsOn : [ ]
8297 steps :
98+ - task : Cache@2
99+ inputs :
100+ key : $(Agent.OS) | **/global.json, **/*.csproj
101+ restoreKeys : $(Agent.OS)
102+ path : $(Pipeline.Workspace)/../../.nuget/packages
83103 - task : CmdLine@2
84104 inputs :
85105 script : ' ./build.cmd Restore Compile Pack --skip'
@@ -103,6 +123,11 @@ stages:
103123 strategy :
104124 parallel : 2
105125 steps :
126+ - task : Cache@2
127+ inputs :
128+ key : $(Agent.OS) | **/global.json, **/*.csproj
129+ restoreKeys : $(Agent.OS)
130+ path : $(Pipeline.Workspace)/../../.nuget/packages
106131 - task : CmdLine@2
107132 inputs :
108133 script : ' ./build.cmd Restore Compile Test --skip --partition $(System.JobPositionInPhase)/2'
@@ -118,6 +143,11 @@ stages:
118143 displayName : ' 📦 Pack'
119144 dependsOn : [ ]
120145 steps :
146+ - task : Cache@2
147+ inputs :
148+ key : $(Agent.OS) | **/global.json, **/*.csproj
149+ restoreKeys : $(Agent.OS)
150+ path : $(Pipeline.Workspace)/../../.nuget/packages
121151 - task : CmdLine@2
122152 inputs :
123153 script : ' ./build.cmd Restore Compile Pack --skip'
0 commit comments