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
1 Answer
Reset to default 1This 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
版权声明:本文标题:c# - Cannot Reference WinUI 3 Community Toolkit In .Net 9 Application - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742340919a2456583.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论