mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-15 19:27:56 +01:00
Closes #37100 This does not migrate the rest of the solutions (why do we have so many?) Not migrated: - TemplateCmdPalExtension.sln - FancyZonesEditor.sln - BugReportTool.sln - CleanUp_tool.sln - FancyZones_DrawLayoutTest.sln - FancyZones_zonable_tester.sln - FancyZone_HitTest.sln - MonitorReportTool.sln - PowerToyTemplate.sln - StylesReportTool.sln --------- Co-authored-by: vanzue <vanzue@outlook.com>
67 lines
2.1 KiB
YAML
67 lines
2.1 KiB
YAML
parameters:
|
|
- name: versionNumber
|
|
type: string
|
|
default: 1.6
|
|
- name: useExperimentalVersion
|
|
type: boolean
|
|
default: false
|
|
|
|
steps:
|
|
- task: NuGetAuthenticate@1
|
|
displayName: 'NuGet Authenticate'
|
|
|
|
- task: PowerShell@2
|
|
displayName: Update WinAppSDK Versions
|
|
inputs:
|
|
filePath: '$(build.sourcesdirectory)\.pipelines\UpdateVersions.ps1'
|
|
arguments: >
|
|
-winAppSdkVersionNumber ${{ parameters.versionNumber }}
|
|
-useExperimentalVersion $${{ parameters.useExperimentalVersion }}
|
|
-rootPath "$(build.sourcesdirectory)"
|
|
|
|
- script: echo $(WinAppSDKVersion)
|
|
displayName: 'Display WinAppSDK Version Found'
|
|
|
|
- task: DownloadPipelineArtifact@2
|
|
displayName: 'Download WindowsAppSDK'
|
|
inputs:
|
|
buildType: 'specific'
|
|
project: '55e8140e-57ac-4e5f-8f9c-c7c15b51929d'
|
|
definition: '104083'
|
|
buildVersionToDownload: 'latestFromBranch'
|
|
branchName: 'refs/heads/release/${{ parameters.versionNumber }}-stable'
|
|
artifactName: 'WindowsAppSDK_Nuget_And_MSIX'
|
|
targetPath: '$(Build.SourcesDirectory)\localpackages'
|
|
|
|
- script: dir $(Build.SourcesDirectory)\localpackages\NugetPackages
|
|
displayName: 'List downloaded packages'
|
|
|
|
- task: NuGetCommand@2
|
|
displayName: 'Install WindowsAppSDK'
|
|
inputs:
|
|
command: 'custom'
|
|
arguments: >
|
|
install "Microsoft.WindowsAppSDK"
|
|
-Source "$(Build.SourcesDirectory)\localpackages\NugetPackages"
|
|
-Version "$(WinAppSDKVersion)"
|
|
-OutputDirectory "$(Build.SourcesDirectory)\localpackages\output"
|
|
-FallbackSource "https://microsoft.pkgs.visualstudio.com/ProjectReunion/_packaging/Project.Reunion.nuget.internal/nuget/v3/index.json"
|
|
|
|
- task: NuGetCommand@2
|
|
displayName: 'Restore NuGet packages'
|
|
inputs:
|
|
command: 'restore'
|
|
feedsToUse: 'config'
|
|
nugetConfigPath: '$(build.sourcesdirectory)\nuget.config'
|
|
restoreSolution: '$(build.sourcesdirectory)\**\*.sln'
|
|
includeNuGetOrg: false
|
|
|
|
- task: NuGetCommand@2
|
|
displayName: 'Restore NuGet packages (slnx)'
|
|
inputs:
|
|
command: 'restore'
|
|
feedsToUse: 'config'
|
|
nugetConfigPath: '$(build.sourcesdirectory)\nuget.config'
|
|
restoreSolution: '$(build.sourcesdirectory)\**\*.slnx'
|
|
includeNuGetOrg: false
|