Repository navigation
Description
Background
Originally posted in the Windows App Community Discord server in #community-toolkit.
A few relevant links:
- GitHub release: https://github.com/microsoft/WindowsAppSDK/releases/tag/v1.8.0
- Wasdk 1.6 dependencies (our current version): https://www.nuget.org/packages/Microsoft.WindowsAppSDK/1.6.250602001#dependencies-body-tab
- Wasdk 1.8 dependencies (new version): https://www.nuget.org/packages/Microsoft.WindowsAppSDK/1.8.250907003#dependencies-body-tab
@0x5bfa mentioned the metapackage part of the release notes:
The Windows App SDK NuGet package has been converted to a NuGet metapackage. Each component contributing to the Windows App SDK is now a component NuGet package and is listed as a dependency by the metapackage. This allows developers to choose either the metapackage or select specific component packages for their applications.
Problem
Looking at the dependencies on 1.8 versus our current 1.6 version, we see:
Microsoft.WindowsAppSDK.AI (= 1.8.37)
Microsoft.WindowsAppSDK.Base (= 1.8.250831001)
Microsoft.WindowsAppSDK.DWrite (= 1.8.25090401)
Microsoft.WindowsAppSDK.Foundation (= 1.8.250906002)
Microsoft.WindowsAppSDK.InteractiveExperiences (= 1.8.250906004)
Microsoft.WindowsAppSDK.Runtime (= 1.8.250907003)
Microsoft.WindowsAppSDK.Widgets (= 1.8.250904007)
Microsoft.WindowsAppSDK.WinUI (= 1.8.250906003)
There's both new things here (AI), and there's existing code extracted into transitive package dependencies. The toolkit doesn't need to depend on most of these!
Solution
To determine which of these transitive packages we do need to depend on, we'd either need a namespace map or we'd need to invidually (manually) check what they do and if/where we depend on them throughout the toolkit.
Notably, Microsoft.WindowsAppSDK.WinUI depends on:
Microsoft.WindowsAppSDK.Base (>= 1.8.250831001)
Microsoft.WindowsAppSDK.Foundation (>= 1.8.250906002)
Microsoft.WindowsAppSDK.InteractiveExperiences (>= 1.8.250906004)
Which means we'll be pulling in these ambiguous ones anywhere we depend on WinUI-- this should cover the majority of toolkit components.
It might be enough to just replace our reference to Microsoft.WindowsAppSDK with a reference to Microsoft.WindowsAppSDK.WinUI. If that's not enough, we'll quickly learn why from the error.
Prerequisites
We depend on these libraries which also depend on Microsoft.WindowsAppSDK:
- Microsoft.Graphics.Win2D
- Closed in Fix WinAppSdk build #1014 by benstevens48
- Microsoft.Xaml.Behaviors.WinUI.Managed
- Closed in Update Microsoft.WindowsAppSDK 1.6 -> 1.8 #314 by spadapet
These will need to be updated to use 1.8 before we can do the same.
All prerequisites on this ticket are unblocked, we're free to proceed here as bandwidth allows.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fields✅ Done
Activity
0x5bfa commentedon Sep 13, 2025
I’d love to work on it.
Avid29 commentedon Sep 25, 2025
I'll take a look
Arlodotexe commentedon Sep 25, 2025
Looks like we stalled a bit when it came to opening the upstream PRs for Labs / mainline WCT for the submodule.
@Avid29 Happy to assign if you're willing to pick up where @0x5bfa left off.
We now only need to open PRs for both the Labs and the mainline WCT repos which bump the tooling submodule pointer to the WASDK 1.8 update PR. There, the CI would run the change against real components, and we'd be able to see and address any errors that come up for each.
michael-hawker commentedon Feb 23, 2026
Anyone see if this workaround works in the meantime while we wait for Win2D? microsoft/WindowsAppSDK#6015 (comment)
michael-hawker commentedon Mar 24, 2026
Win2D is updated now, so we should be unblocked.
Arlodotexe commentedon Mar 26, 2026
Here's where we are now.
What builds/works
What doesn't work
./tooling/GenerateSingleSolution.ps1.Where this package is coming from
Using
dotnet nuget whytells us thatmicrosoft.windows.sdk.buildtools.msix\1.7.20250829.1is coming from:What we can do from here
Arlodotexe commentedon Mar 30, 2026
Update posted here: #293 (comment)
The error message mentioned above is still an issue, though we have binlogs now they're not providing enough information to act on.
Any insights or ideas from others here would be appreciated, we'll be asking behind the scenes as well.
michael-hawker commentedon Mar 30, 2026
@Arlodotexe more info that @manodasanW found:
So, this is toolkit using toolkit issue, as we reference the existing packages to build, they still use the old WASDK version...
We either need to understand how to build the toolkit without the toolkit here:
Tooling-Windows-Submodule/ProjectHeads/Tests.Head.props
Lines 19 to 30 in 0d171da
(Not sure if these ones matter too: https://github.com/CommunityToolkit/Tooling-Windows-Submodule/blob/0d171da53eac6fca254882f2236bbec68a7a7ed7/ProjectHeads/App.Head.props)
Or work through another approach.
Wondering, if we can just reference this submodule change in the main repo, and get an interim test package built end-to-end. If that works, then we can always just merge this in, get a build of the toolkit together, and then update package numbers here to restore the pipeline post 1.8 update?
michael-hawker commentedon Apr 2, 2026
The main WCT packages have been released in preview to NuGet with support for WinAppSDK 1.8: CommunityToolkit/Windows#839