在 Visual Studio 中创建新项目时没有可用的模板 [英] No templates available when creating a new project in Visual Studio

查看:190
本文介绍了在 Visual Studio 中创建新项目时没有可用的模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

未找到模板信息.有关详细信息,请参阅事件查看器中的应用程序日志.要打开事件查看器,请单击开始,单击控制面板,双击管理工具,然后双击事件查看器."

这是我尝试创建新项目或解决方案时收到的错误消息.如何解决?

That's the error message I get when I try to create a new project or solution. How can this be resolved?

推荐答案

我使用了其他站点提供给我的解决方案.其中一个说要重新安装模板.我做了以下事情:

I used a solution presented to me from other sites. One of them said to reinstall templates. I did the following:

在命令提示符中我输入:cd C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE

In the command prompt I typed: cd C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE

然后我输入:devenv/installvstemplates

Then I typed: devenv /installvstemplates

我花了一分钟,但完成后我打开了 Visual Studio 并尝试创建一个新项目.我的所有项目模板都恢复原状,包括工作流、SharePoint 和 Silverlight 等其他模板.

I took a minute but after it completed I opened Visual Studio and tried to create a new project. All my project templates were back in order, including additional templates like Workflow, SharePoint and Silverlight.

其他来源的链接

这篇关于在 Visual Studio 中创建新项目时没有可用的模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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