【发布时间】:2017-03-10 08:21:22
【问题描述】:
创建新项目时,我可以选择new Windows Forms Project。它将为我打开一个带有新窗口窗体的新项目。当右键单击我打开的项目并选择add => Windows Form 时,它只会打开“新元素”掩码,其中缺少 Windows 窗体、WPF 和其他模板。
我已经尝试过Visual Studio C# Can't make new windows form projectdevenv /installvstemplates,但没有告诉我模板丢失。
以下文件通过命令行传递:
\installvtemplates
未找到这些文件,无法加载。
我必须做什么才能取回我的 WinForm 模板,我在哪里可以配置这些模板?我不能只重新安装 Visual Studio 2013 Ultimate,因为我没有安装介质,也没有密钥(就像我公司里没有人知道在哪里可以找到它)。
在下面的屏幕截图中,您可以看到掩码,我以前有很多模板。在这种情况下,我们只有 Inherited Forms 和 Inherited User Control 作为可用的模板。
这是我选择new project 时得到的,Windows 窗体在这里可用。
(Win Forms 对象不可用)
模板文件在C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\ItemTemplates\VisualBasic 可用,所以我很确定它必须是设置中的某个选项。有任何想法吗?
【问题讨论】: