Skip to content

Update to Microsoft.WindowsAppSDK 1.6, enable AoT.  #205

Open

Description

@Arlodotexe

Tracking issue for updating toolkit tooling to WindowsAppSDK 1.6 and enabling AoT support.

Preview1:

Preview2:

Stable:

CsWinRTAotWarningLevel 2:

General Gallery / Component issues:

Activity

  1. self-assigned this
    on Aug 16, 2024
  2. moved this to 🏗 In progress in Toolkit 8.xon Aug 16, 2024
  3. michael-hawker commented on Sep 6, 2024

    @michael-hawker
    Member

    Thanks @Arlodotexe, I've unblocked you on the Preview2 PRs. As discussed, we'll just snap those in as a check-point and then update to the stable 1.6 bits.

  4. michael-hawker commented on Sep 9, 2024

    @michael-hawker
    Member

    Got a report from building with 1.6-stable against our latest 1.6-preview2 bits with this error:

    1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(5321,5): error MSB3030: Could not copy the file "C:\Users....nuget\packages\communitytoolkit.winui.animations\8.2.240909-build.1181\lib\net8.0-windows10.0.22621\CommunityToolkit.WinUI.Animations\runtimes\win-x64\native\WebView2Loader.dll" because it was not found.

    looks like a path problem:

    Wrong
    C:\Users....nuget\packages\communitytoolkit.winui.animations\8.2.240909-build.1181\lib\net8.0-windows10.0.22621\CommunityToolkit.WinUI.Animations\runtimes\win-x64\native\

    Correct
    C:\Users....nuget\packages\communitytoolkit.winui.animations\8.2.240909-build.1181\lib\net8.0-windows10.0.22621.0\CommunityToolkit.WinUI.Animations\runtimes\win-x64\native
    Note the missing .0 in the TFM part of the path, should be net8.0-windows10.0.22621.0 but was net8.0-windows10.0.22621.

    Talking with @Arlodotexe it sounds similar (though different) to the issue Morten had reported in Labs here: CommunityToolkit/Labs-Windows#569

    Though with all the WebView changes between preview1 and stable, we may just want to have them reproduce once we have a 1.6 build to try.

  5. michael-hawker commented on Sep 9, 2024

    @michael-hawker
    Member

    Screenshot of nuget package:
    image

    the issue is on the packaged from ctk which has 2 folders for the .net8-windowsSdk version
    same for other .net versions
    the only diff is that 1 has the bits for CTK and the other has the WebView2 dll

  6. michael-hawker commented on Sep 9, 2024

    @michael-hawker
    Member

    They tried the 1.6 bits from the latest PR, same issue, if they merge the folders and move the bits in the wrong place to the right place, it works.

  7. BlameTwo commented on Nov 22, 2024

    @BlameTwo

    May I ask how the progress is now?

  8. michael-hawker commented on Mar 19, 2025

    @michael-hawker
    Member

    @Arlodotexe did you test any of the labs components or only the main repo?

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

Metadata

Metadata

Assignees

Labels

nativeaotThe dependency on dotnet NativeAOT

Type

No type

Projects

  • Status
    🏗 In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions