缺少 WPF 应用程序模板 [英] WPF Application template is missing

查看:33
本文介绍了缺少 WPF 应用程序模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 VS2010 安装有 WPF 浏览器应用程序项目模板和 WPF 用户控制库模板,但没有 WPF 应用程序模板.任何建议,将不胜感激.

My VS2010 install has WPF Browser application project template, and WPF User Control lib template, but no WPF Application template. Any suggestions would be appreciated.

推荐答案

对我来说,我在 .csproj 文件中缺少 ProjectTypeGuids(一个新项目对我有用,所以只是比较了项目文件),所以如果你将它添加到PropertyGroup 下的 .csproj 文件然后我可以添加所有 WPF 类型:

For me I was missing ProjectTypeGuids in the .csproj file (a new project worked for me so just compared the project files), so if you add this to the .csproj file under PropertyGroup I then had all the WPF types available for adding:

<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>

这篇关于缺少 WPF 应用程序模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆