Open
Labels
nativeaotThe dependency on dotnet NativeAOTThe dependency on dotnet NativeAOT
Description
Tracking issue for updating toolkit tooling to WindowsAppSDK 1.6 and enabling AoT support.
Preview1:
- Tooling: Update to WinAppSdk 1.6, enable AoT on gallery head #195
- Windows Community Toolkit Updated to WinAppSdk 1.6, fixed AoT annotations Windows#457
- Windows Community Toolkit Labs Updated to WinAppSdk 1.6, fixed AoT annotations Labs-Windows#561
Preview2:
- Tooling: Update Microsoft.WindowsAppSDK to 1.6-preview2 #208
- Windows Community Toolkit Update Microsoft.WindowsAppSDK to 1.6-preview2 Windows#492
- Windows Community Toolkit Labs Update Microsoft.WindowsAppSDK to 1.6-preview2 Labs-Windows#568
Stable:
- Tooling: Update Microsoft.WindowsAppSDK to 1.6 stable #209
- Windows Community Toolkit Update Microsoft.WindowsAppSdk to 1.6 stable Windows#503
- Windows Community Toolkit Labs Update Microsoft.WindowsAppSdk to 1.6 stable Labs-Windows#570
CsWinRTAotWarningLevel 2:
- Tooling: Enabled CsWinRTAotWarningLevel 2 #212
- Windows Community Toolkit Fix analyzer warnings for CsWinRTAotWarningLevel 2 Windows#507
- Windows Community Toolkit Labs Fix analyzer warnings for CsWinRTAotWarningLevel 2 Labs-Windows#572
General Gallery / Component issues:
- GeneratedSampleOptionRenderer dependency property fails to bind under AoT, crashes sample gallery #213
- ColorPicker sample in gallery crashing under Windows App SDK Windows#509
- TextBoxExtensions sample in gallery crashes under Windows App SDK Windows#510
- AttachedCardShadow sample in gallery crashes under NativeAoT Windows#511
- Shadows overview sample in gallery crashes under Windows App SDK Windows#512
- AdvancedCollectionView items are empty in gallery sample under Windows App SDK Windows#513
- IncrementalLoadingCollection gallery sample items missing content under Windows App SDK Windows#514
- WrapLayout gallery sample never loads, is unusably slow under Windows App SDK Windows#515
- SwitchPresenter sample in gallery crashes under Windows App SDK Windows#516
- StaggeredPanel, WrapPanel samples in gallery crash under Windows App SDK Windows#517
- Gallery app home template text not binding under Windows App Sdk Windows#519
- NuGet validation fails with 1.6 references due to unexpected included webview2loader.dll #215
Metadata
Metadata
Assignees
Labels
nativeaotThe dependency on dotnet NativeAOTThe dependency on dotnet NativeAOT
Type
Projects
- StatusShow more project fields🏗 In progress
Activity
michael-hawker commentedon Sep 6, 2024
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.
michael-hawker commentedon Sep 9, 2024
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
.0in the TFM part of the path, should benet8.0-windows10.0.22621.0but wasnet8.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.
michael-hawker commentedon Sep 9, 2024
Screenshot of nuget package:

michael-hawker commentedon Sep 9, 2024
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.
BlameTwo commentedon Nov 22, 2024
May I ask how the progress is now?
michael-hawker commentedon Mar 19, 2025
@Arlodotexe did you test any of the labs components or only the main repo?