正在尝试使用Windows App SDK 1.0.0 experimental1将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.我在桌面实验项目类型中使用WinUI,即:

看起来Windows App SDK和WCT Nuget包之间有一些交叉,但我可以采取哪些步骤来解决这个问题并使用WCT?
发布于 2021-10-11 07:03:52
发现了with的问题,似乎this还不能兼容WinUI 3。
https://stackoverflow.com/questions/69515107
复制相似问题