Skip to content

Upgrade to Windows App SDK 1.8 #292

Closed

Description

@Arlodotexe

Background

Originally posted in the Windows App Community Discord server in #community-toolkit.

A few relevant links:

@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:

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.

Activity

  1. added
    external ⤴️
    on Sep 13, 2025
  2. moved this to 🔖 Ready in Toolkit 8.xon Sep 13, 2025
  3. 0x5bfa commented on Sep 13, 2025

    @0x5bfa
    Contributor

    I’d love to work on it.

  4. Avid29 commented on Sep 25, 2025

    @Avid29
    Member

    I'll take a look

  5. Arlodotexe commented on Sep 25, 2025

    @Arlodotexe
    MemberAuthor

    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.

  6. moved this from 🔖 Ready to 🏗 In progress in Toolkit 8.xon Sep 25, 2025
  7. michael-hawker commented on Feb 23, 2026

    @michael-hawker
    Member

    Anyone see if this workaround works in the meantime while we wait for Win2D? microsoft/WindowsAppSDK#6015 (comment)

  8. michael-hawker commented on Mar 24, 2026

    @michael-hawker
    Member

    Win2D is updated now, so we should be unblocked.

  9. self-assigned this
    on Mar 24, 2026
  10. Arlodotexe commented on Mar 26, 2026

    @Arlodotexe
    MemberAuthor

    Here's where we are now.

    What builds/works

    • Behaviors, Win2d and ImageCropper were tested locally and build successfully on my end (src-only, not sln).
    • The only upstream components from the mainline WCT using Win2D are ImageCropper and Media (Labs to be checked)

    What doesn't work

    • The current issue is coming from the single-component wasdk test project which is generated using ./tooling/GenerateSingleSolution.ps1.
    • The exact error message is:
      •   2026-03-24T21:20:06.1509828Z C:\Users\runneradmin\.nuget\packages\microsoft.windows.sdk.buildtools.msix\1.7.20250829.1\build\Microsoft.Windows.SDK.BuildTools.MSIX.targets(33,5): error : The MSIX build tools use the 'CustomBeforeMicrosoftCommonTargets' MSBuild property to wire up a custom .props file that sets some necessary properties. This .props file does not appear to have been imported correctly. This likely means that someone has also overridden 'CustomBeforeMicrosoftCommonTargets', without ensuring to also chain the import of the previously assigned .props and .targets set to that property. You can use a binlog to learn more about where that assignment was done (set the verbosity to diagnostics, and search for 'reassignment: $(CustomBeforeMicrosoftCommonTargets'). [D:\a\Tooling-Windows-Submodule\Tooling-Windows-Submodule\components\CiTestExp\heads\Wasdk\CiTestExp.Wasdk.csproj]
        

    Where this package is coming from

    Using dotnet nuget why tells us that microsoft.windows.sdk.buildtools.msix\1.7.20250829.1 is coming from:

    • Microsoft.WindowsAppSDK.Base (v1.8.251216001) ->
      • from Microsoft.WindowsAppSDK.InteractiveExperiences (v1.8.260125001) ->
        • from Microsoft.WindowsAppSDK.Foundation (v1.8.260203002) ->
          • from Microsoft.WindowsAppSDK.WinUI (v1.8.260204000)

    What we can do from here

    • From the error message given, we need to inspect the binlog and find the problematic reassignment.
      • Diagnostics are currently disabled in the CI so no binlog is available for inspection, we would either need:
        • A local repro to produce a binlog (which I'm currently working on)
        • To enable the diagnostics flag in CI (temporarily?) to produce a binlog.
    • If the all-component wasdk test project isn't having issues, inspect the differences with the single-component wasdk test project.
  11. Arlodotexe commented on Mar 30, 2026

    @Arlodotexe
    MemberAuthor

    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.

  12. michael-hawker commented on Mar 30, 2026

    @michael-hawker
    Member

    @Arlodotexe more info that @manodasanW found:

    Image

    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:

    <Choose>
    <When Condition="'$(ToolkitExtensionsSourceProject)' == ''">
    <ItemGroup>
    <PackageReference Include="CommunityToolkit.$(DependencyVariant).Extensions" Version="8.2.250402"/>
    </ItemGroup>
    </When>
    <When Condition="'$(IsSingleExperimentHead)' == 'true' and $(MSBuildProjectName.StartsWith('Extensions')) == 'false'">
    <ItemGroup>
    <ProjectReference Include="$(ToolkitExtensionsSourceProject)"/>
    </ItemGroup>
    </When>
    </Choose>

    (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?

  13. moved this from 🏗 In progress to ✅ Done in Toolkit 8.xon Apr 1, 2026
  14. michael-hawker commented on Apr 2, 2026

    @michael-hawker
    Member

    The main WCT packages have been released in preview to NuGet with support for WinAppSDK 1.8: CommunityToolkit/Windows#839

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

Metadata

Metadata

Labels

external ⤴️

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions