Skip to content

Conversation

mattleibow
Copy link
Member

@mattleibow mattleibow commented Oct 23, 2025

This pull request updates several project files to improve Windows platform support and modernize dependencies. The main changes involve updating Windows SDK package versions, adding the Microsoft.WindowsAppSDK package to relevant projects, and making adjustments for publishing and output handling.

Fixes #30858

Attempt 1 #30665
Attempt 2 #31281

Dependency updates:

  • Updated MicrosoftWindowsAppSDKPackageVersion to 1.8.251003001 and MicrosoftWindowsSDKBuildToolsPackageVersion to 10.0.26100.4654 in eng/Versions.props, ensuring projects use the latest Windows SDKs.

Project file improvements for Windows support:

  • Added Microsoft.WindowsAppSDK as a PackageReference to Essentials.csproj, Graphics.Skia.csproj, Graphics.Win2D.csproj, and duplicated in Graphics.csproj to ensure consistent Windows App SDK usage across graphics and essentials projects. [1] [2] [3] [4]
  • Removed Windows-specific property settings from Controls.Xaml.csproj, simplifying project configuration for Windows builds.

Build and publishing process adjustments:

  • Added new MSBuild targets (GetTypeScriptOutputForPublishing, GetTypeScriptCopyToOutputDirectoryItems) in Directory.Build.targets to improve TypeScript output handling during publishing.
  • Updated asset path logic in WindowsTemplateTest.cs to better handle runtime identifier (RID) directories when publishing packaged Windows apps.

@Copilot Copilot AI review requested due to automatic review settings October 23, 2025 15:04
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the Windows App SDK from version 1.7 to 1.8 and modernizes Windows platform support across multiple projects. The update addresses issue #30858 by ensuring consistent Windows SDK versions and proper package references.

Key changes:

  • Updated Windows App SDK to version 1.8.251003001 and Windows SDK Build Tools to 10.0.26100.4654
  • Added Microsoft.WindowsAppSDK package reference to graphics and essentials projects for consistent Windows support
  • Fixed asset path handling in Windows integration tests to accommodate both RID-graph and non-RID-graph scenarios

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
eng/Versions.props Updated Windows App SDK and Build Tools package versions to latest releases
src/Essentials/src/Essentials.csproj Added Microsoft.WindowsAppSDK package reference for Windows platform support
src/Graphics/src/Graphics.Skia/Graphics.Skia.csproj Added Microsoft.WindowsAppSDK package reference for Windows builds
src/Graphics/src/Graphics.Win2D/Graphics.Win2D.csproj Added Microsoft.WindowsAppSDK package reference for consistency
src/Graphics/src/Graphics/Graphics.csproj Added duplicate Microsoft.WindowsAppSDK package reference
src/Controls/src/Xaml/Controls.Xaml.csproj Removed Windows-specific DefineConstants and PRI generation properties
Directory.Build.targets Added empty TypeScript targets to prevent unwanted output handling during publish
src/TestUtils/src/Microsoft.Maui.IntegrationTests/WindowsTemplateTest.cs Modified RID path construction to handle both RID-graph and non-RID-graph scenarios

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants