Skip to content

Commit 5f278d7

Browse files
Remove dotnet restore condition
1 parent eecc564 commit 5f278d7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

azure-pipelines.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,13 @@ stages:
3838
condition: ${{ parameters.cache_nuget }}
3939
displayName: Cache NuGet packages
4040
inputs:
41-
key: 'nuget | "$(Agent.OS)" | **/packages.lock.json'
41+
key: 'nuget | "$(Agent.OS)" | **/packages.lock.json, !**/bin/**, !**/obj/**'
4242
restoreKeys: |
4343
nuget | "$(Agent.OS)"
4444
nuget
4545
path: $(NUGET_PACKAGES)
46-
cacheHitVar: 'CACHE_NUGET_RESTORED'
4746

4847
- script: dotnet restore $(solution) --locked-mode
49-
condition: or(not(${{ parameters.cache_nuget }}), ne(variables.CACHE_NUGET_RESTORED, 'true'))
5048
displayName: Restore NuGet packages
5149

5250
# Build

0 commit comments

Comments
 (0)