【问题标题】:WinUI 3 and Windows Community Toolkit - InitializeComponent errorWinUI 3 和 Windows 社区工具包 - InitializeComponent 错误
【发布时间】:2021-11-29 13:10:54
【问题描述】:

尝试使用 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.

我在桌面实验项目类型中使用 WinUI,即:

Windows App SDK 和 WCT Nuget 包之间似乎有些交叉,但我可以采取哪些步骤来解决这个问题并使用 WCT?

【问题讨论】:

    标签: windows-community-toolkit winui-3


    【解决方案1】:

    找到this github 问题,WCT 似乎与 WinUI 3 不兼容。

    【讨论】:

      猜你喜欢
      • 2020-03-20
      • 1970-01-01
      • 2020-06-29
      • 2021-10-12
      • 2021-09-21
      • 2019-05-26
      • 2021-10-08
      • 2021-06-20
      • 2019-03-06
      相关资源
      最近更新 更多