简体   繁体   English

WPF 应用程序(.NET Core),Visual Studio 不允许我添加 WPF window

[英]WPF App(.NET Core), visual studio isn't allowing me to add a WPF window

When I right-click and go to add and select Window(WPF) my options of what I can add to the project doesn't include Window(WPF).当我右键单击并 go 添加和 select 窗口(WPF)时,我可以添加到项目的选项不包括窗口(WPF)。 I've seen answers to this problem claim adding '{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}' to the csproj file should resolve it but in my case that didn't help.我已经看到这个问题的答案声称在 csproj 文件中添加 '{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}' 应该可以解决它,但在我的情况下没有帮助。

Does anyone know what's going on?有谁知道发生了什么? Here its showing the Window(WPF) choice And when I click on it, Window(WPF) isn't there这里它显示了 Window(WPF) 选项当我点击它时,Window(WPF) 不存在

Fixed it.解决它。 It turns out I didn't have the .NET Desktop Development workload installed.事实证明,我没有安装 .NET 桌面开发工作负载。 I also had the UWP workload installed.我还安装了 UWP 工作负载。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Visual Studio 中的 .net 核心适用于控制台应用程序,但不适用于 wpf 或 winforms - .net core in visual studio works with console app but not with wpf or winforms 从 WPF.Net 核心应用程序打开 Outlook 365 window - Opening Outlook 365 window from WPF .Net Core app 如何将 wpf .net core exe 添加为 Visual Studio 2022 的项目引用以用作多个启动项目? - How can I add wpf .net core exe as project reference to visual studio 2022 for using as multiple startup project? WPF解决方法,将Window控件添加为可视控件 - WPF Workaround to add Window control as a child of visual 将 app.config 添加到 .net core wpf 应用程序的正确方法是什么,因为它不像 .net 框架那样随附? - What is the right way to add app.config to a .net core wpf application since it doesn't come with it unlike .net framework? 不显示Visual Studio 2013 WPF设计时数据 - Visual Studio 2013 WPF design-time data isn't displayed 无法在Visual Studio中调试WPF项目 - Can't Debug WPF project in Visual Studio WPF窗口应该是本机所有者窗口的模态,但不是 - WPF window should be modal to native owner window, but isn't 使用 WPF 的 VSIX 的 Visual Studio 自定义窗口在其他项目中找不到主题 - Visual Studio Custom Window for VSIX using WPF Can't find theme in other project Visual Studio 2010 WPF - Visual studio 2010 WPF
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM