This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- powershell: | # generates a hash of all packages.config and saves each on a single line on 'hash.txt' | |
Get-FileHash -Algorithm MD5 -Path (Get-ChildItem packages.config -Recurse) >> hash.txt | |
Write-Host "Hash File saved to $pwd\hash.txt" | |
workingDirectory: src | |
displayName: 'Calculate and save packages.config hash' | |
- task: CacheBeta@0 # speed up builds by caching packages folder | |
inputs: | |
key: nuget|1|$(Agent.OS)|$(Build.SourcesDirectory)\src\hash.txt # hash map generated in previous step | |
path: $(Build.SourcesDirectory)\src\packages |