【问题标题】:WPF App(.NET Core), visual studio isn't allowing me to add a WPF windowWPF App(.NET Core),Visual Studio 不允许我添加 WPF 窗口
【发布时间】:2021-08-02 01:38:34
【问题描述】:

当我右键单击并转到添加并选择 Window(WPF) 时,我可以添加到项目的选项不包括 Window(WPF)。 我已经看到这个问题的答案声称在 csproj 文件中添加 '{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}' 应该可以解决它,但在我的情况下没有帮助。

有人知道发生了什么吗? Here its showing the Window(WPF) choice And when I click on it, Window(WPF) isn't there

【问题讨论】:

  • 当有 net 5 时,为什么您会选择使用新应用程序以 net core 3.1 为目标? net5.0-windows
  • 我在共享项目中遇到 ResourceDictionary 这个问题,解决方法是在 Visual Studio Installer 中安装 UWP Workload

标签: c# wpf visual-studio


【解决方案1】:

修好了!事实证明我没有安装 .NET 桌面开发工作负载。我还安装了 UWP 工作负载。

【讨论】:

    猜你喜欢
    • 2010-12-01
    • 1970-01-01
    • 1970-01-01
    • 2021-08-26
    • 2016-07-02
    • 1970-01-01
    • 2011-04-01
    • 1970-01-01
    • 2011-03-07
    相关资源
    最近更新 更多