mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-15 20:19:17 +08:00
21 lines
693 B
YAML
21 lines
693 B
YAML
|
steps:
|
||
|
- template: steps-ensure-nuget-version.yml
|
||
|
|
||
|
- task: NuGetAuthenticate@1
|
||
|
|
||
|
- script: |-
|
||
|
echo ##vso[task.setvariable variable=NUGET_RESTORE_MSBUILD_ARGS]/p:Platform=$(BuildPlatform)
|
||
|
displayName: Ensure NuGet restores for $(BuildPlatform)
|
||
|
condition: and(succeeded(), ne(variables['BuildPlatform'], 'Any CPU'))
|
||
|
|
||
|
# In the Microsoft Azure DevOps tenant, NuGetCommand is ambiguous.
|
||
|
# This should be `task: NuGetCommand@2`
|
||
|
- task: 333b11bd-d341-40d9-afcf-b32d5ce6f23b@2
|
||
|
displayName: Restore NuGet packages
|
||
|
inputs:
|
||
|
command: restore
|
||
|
feedsToUse: config
|
||
|
configPath: NuGet.config
|
||
|
restoreSolution: packages.config
|
||
|
restoreDirectory: '$(Build.SourcesDirectory)\packages'
|