windows-community-toolkit - WinUI 3 和 Windows 社区工具包 - InitializeComponent 错误
问题描述
尝试使用 Windows App SDK 1.0.0 实验性 1 将 Windows 控件工具包与 WinUI 3 一起使用。
我收到这两个错误:
Error CS1061 'App' does not contain a definition for 'InitializeComponent'
Error NETSDK1022 Duplicate 'Page' items were included. The .NET SDK includes 'Page' items from your project directory by default.
看起来 Windows App SDK 和 WCT Nuget 包之间存在一些交叉,但我可以采取哪些步骤来解决这个问题并使用 WCT?
解决方案
发现这个github 问题后,WCT 似乎与 WinUI 3 不兼容。
推荐阅读
- python - plt.plot(), object.plot() 有什么区别
- azure-devops - 我可以使用托管构建代理来构建同时针对 netcore 2.1 和 3.1 的 VS 2019 项目吗?
- fullcalendar - FullCalendar 用于预订,可选择拖动/单击
- asp.net - 将上传进度从 Web API 发送到客户端应用程序
- matlab - 如何在 3D 表面上找到最接近该表面外点的点?
- node.js - 如何将图像缓冲区转换为照片以上传到 Cloudinary?
- typescript - 如何让 Jest 自定义匹配器在打字稿中工作?
- angular - 单击时如何禁用按钮并更改文本
- java - Spring Cloud Gateway:将路径 /a 映射到路径 /b
- bash - 在 shell 中调用脚本后获取文本