admin管理员组

文章数量:1332692

Big project is converting UWP app to WinUI3. The UWP app uses the UWP Toolkit for the Grid Splitter control. Trying to reference the CommunityToolkit in WINUI + .Net 9 I can choose Nuget Package CommunityToolkit.WinUI.Controls.Sizers. However I cannot reference this package in XAML

xmlns:toolSizer="using:CommunityToolkit.WinUI.Controls.Sizers"

All the samples use

xmlns:toolSizer="using:CommunityToolkit.WinUI.Controls"

but this does not work either. I have read mountains of documentation and not sure what I am doing wrong.

Big project is converting UWP app to WinUI3. The UWP app uses the UWP Toolkit for the Grid Splitter control. Trying to reference the CommunityToolkit in WINUI + .Net 9 I can choose Nuget Package CommunityToolkit.WinUI.Controls.Sizers. However I cannot reference this package in XAML

xmlns:toolSizer="using:CommunityToolkit.WinUI.Controls.Sizers"

All the samples use

xmlns:toolSizer="using:CommunityToolkit.WinUI.Controls"

but this does not work either. I have read mountains of documentation and not sure what I am doing wrong.

Share Improve this question edited Nov 21, 2024 at 4:53 Andrew KeepCoding 13.9k2 gold badges21 silver badges37 bronze badges asked Nov 20, 2024 at 17:31 Bob BalokBob Balok 214 bronze badges 3
  • I have package CommunityToolkit.WinUI.Controls.Sizers (8.1.240916) in the Depencencies\Packages folder for the project – Bob Balok Commented Nov 20, 2024 at 17:35
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Bot Commented Nov 20, 2024 at 19:13
  • Reading more documentation I changed Target Framework - <TargetFramework>net9.0-windows10.0.22621.0</TargetFramework> and Unloaded and then Reloaded the project and it appeared to fix the issue with my small tester app. I will try it in my large app and see if it gets rid of the issue. – Bob Balok Commented Nov 20, 2024 at 21:03
Add a comment  | 

1 Answer 1

Reset to default 1

This is mentioned in the release notes. You need to update your target versions to 22621:

<TargetFramework>net9.0-windows10.0.22621.0</TargetFramework>
<WindowsSdkPackageVersion>10.0.22621.38</WindowsSdkPackageVersion>

本文标签: cCannot Reference WinUI 3 Community Toolkit In Net 9 ApplicationStack Overflow