[英]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.