Add New CI Pipeline for Latest WindowsAppSDK
Summary
The old PR cannot be reopened, so I create a new PR
This PR introduces the following changes to the CI pipeline and version management:
Pipeline Enhancements:
- Added a new script
UpdateVersions.ps1to automate the update ofMicrosoft.WindowsAppSDKversions across various project files. - Introduced a new pipeline configuration
ci-using-the-latest-winappsdk.ymlto build using the latestMicrosoft.WindowsAppSDK. - Updated existing pipeline configurations to support the new
useLatestWinAppSDKparameter.
Pipeline Configuration Updates:
- Updated
job-build-project.ymlto handle theuseLatestWinAppSDKparameter and adjust theRestoreAdditionalProjectSourcesArgaccordingly. - Added a new template
steps-update-winappsdk-and-restore-nuget.ymlfor updating and restoring NuGet packages with the latestMicrosoft.WindowsAppSDK. - Added WinAPPSDK version selection, the pipeline can be manually triggered to use the specified version.
PR Checklist
- [ ] Closes: #xxx
- [x] Communication: I've discussed this with core contributors already. If work hasn't been agreed, this work might be rejected
- [x] Tests: Added/updated and all pass
- [ ] Localization: All end user facing strings can be localized
- [ ] Dev docs: Added/updated
- [ ] New binaries: Added on the required places
- [ ] JSON for signing for new binaries
- [ ] WXS for installer for new binaries and localization folder
- [x] YML for CI pipeline for new test projects
- [ ] YML for signed pipeline
- [ ] Documentation updated: If checked, please file a pull request on our docs repo and link it here: #xxx
Detailed Description of the Pull Request / Additional comments
Changes
New Files
.pipelines/UpdateVersions.ps1: Script to updateMicrosoft.WindowsAppSDKversions..pipelines/v2/ci-using-the-latest-winappsdk.yml: New pipeline configuration for using the latestMicrosoft.WindowsAppSDK..pipelines/v2/templates/steps-update-winappsdk-and-restore-nuget.yml: Template for updating and restoring NuGet packages.
Modified Files
.pipelines/v2/templates/job-build-project.yml: Updated to handleuseLatestWinAppSDKparameter and adjust MSBuild arguments..pipelines/v2/templates/pipeline-ci-build.yml: AddeduseLatestWinAppSDKparameter.
Validation Steps Performed
- Verified that the new
.pipelines/UpdateVersions.ps1script correctly updates theMicrosoft.WindowsAppSDKversions in the relevant project files. - Ensured that the new pipeline configuration builds successfully with the latest
Microsoft.WindowsAppSDK. - Tested the conditional execution of
verifyNoticeMdAgainstNugetPackages.ps1based on theuseLatestWinAppSDKparameter.
FYI, you can mark it as draft until you're ready.
FYI, you can mark it as draft until you're ready.
Got it, it's ready for review now
Hi, we've added the "Don't Merge" tag to the PR, since we're trying to keep the repo stable for the release and possible hotfix if necessary. Please don't merge the PR while the tag is still in here. This allows people to review the PR and approve with less fear that it'll get merged 😄
PR merged, thanks for your suggestions and help.
