2015年Visual Studio Express新文件发行。

时间:2020-12-01 00:37:26

I have a peculiar issue in Visual Studio Express 2015. I am trying to create a new empty Win32 Console Application project in Visual C++. I can create a new project, clear the check boxes for precompiled headers and SDL checks as well as check the box for "Empty Project". The project is created, but when I go to add a new item to my source files, I have nothing to choose from under "Installed". Under previous versions, I could choose a new blank C++ (.cpp) file or a Header (.h) file. I can create new .vb files under Visual Basic and new .cs files under C#, but the "Add" button is grayed out when I try to create a new C++ file. Anybody got any ideas? I've installed this on three different computers with the same results (Windows 7 OS on all 3). I've attached a screenshot of the Add new item dialog.

我在Visual Studio Express 2015有一个特别的问题。我正在尝试在Visual c++中创建一个新的空Win32控制台应用程序项目。我可以创建一个新项目,清除预编译标题和SDL检查的复选框,以及“空项目”的复选框。项目已经创建,但是当我向源文件中添加一个新项时,我在“install”下没有选择。在以前的版本中,我可以选择一个新的空白c++ (.cpp)文件或头文件(.h)。我可以在Visual Basic下创建新的.vb文件,在c#下创建新的.cs文件,但是当我尝试创建一个新的c++文件时,“添加”按钮是灰色的。任何人有任何想法吗?我已经在3台不同的电脑上安装了相同的结果(所有3台都安装了Windows 7操作系统)。

2015年Visual Studio Express新文件发行。

2 个解决方案

#1


11  

What worked for me was to copy all the files except the Utility directory from C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\VCProjectItems_WDExpress into C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcprojectitems

为我工作的是复制所有文件除了实用程序目录从C:\Program Files (x86)\Microsoft Visual Studio 14.0 \ VC \ VCProjectItems_WDExpress C:\Program Files (x86)\Microsoft Visual Studio 14.0 \ VC \ vcprojectitems

When I added an item (Right click on Source Files directory in Visual Studio Express Solution Explorer), all the cpp items were available.

当我添加一个项目(在Visual Studio Express解决方案资源管理器中右键单击源文件目录)时,所有cpp项目都可用。

#2


5  

I encountered this problem after downloading and installing Visual Studio Express 14.0 on April 16 2016. This seems to be the re-emergence of a problem encountered in earlier versions of Visual Studio Express. This is a link to a workaround for version 12.0, involving a straightforward edit to the registry:

我在2016年4月16日下载安装Visual Studio Express 14.0后遇到了这个问题。这似乎是Visual Studio Express早期版本中遇到的问题的再现。这是一个关于版本12.0的解决方案的链接,涉及到对注册表的简单编辑:

[HKEY_CURRENT_USER\Software\Microsoft\WDExpress\12.0_Config\Projects{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC943}\AddItemTemplates\TemplateDirs{F1C25864-3097-11D2-A5C5-00C04F7968B4}/1]

微软软件\[HKEY_CURRENT_USER \ \ WDExpress \ 12.0 _config bc9ceb8-8b4a-11d0-8d11-00a0c91bc943 { 8 } \ AddItemTemplates \ \项目TemplateDirs { f1c25864 - 3097 - 11 - d2 - a5c5 - 00 - c04f7968b4 } / 1)

"TemplatesDir"="C:\Program Files (x86)\Microsoft Visual Studio 12.0\\VC\VCProjectItems_WDExpress"

"TemplatesDir"="C:\Program Files (x86)\Microsoft Visual Studio 12.0\ VC\VCProjectItems_WDExpress"

I followed the instructions except for altering the version number from 12.0 to 14.0 where relevant, and it solved the problem.

除了将版本号从12.0更改为14.0(如果相关的话)之外,我遵循了说明,它解决了问题。

Possibly the problem arose because alongside the installation of Studio Express, it seems that a Microsoft Update updated the Microsoft Visual C++ Redistributable (x64) and (x86). The consequence was an error message at the end of the Studio Express installation, because the version number of these installed C++ components was higher than those included in the Studio Express download. Deinstalling the later versions and then rerunning the Studio Express installation was successful in so far as there was no error message, but this problem with New Item was there.

可能出现问题的原因是,在安装Studio Express的同时,微软的一个更新似乎更新了Microsoft Visual c++ Redistributable (x64)和(x86)。结果是Studio Express安装结束时出现了一条错误消息,因为这些已安装的c++组件的版本号比Studio Express下载中包含的版本号要高。在没有错误消息的情况下,卸载后的版本,然后重新运行Studio Express安装是成功的,但是New Item存在这个问题。

#1


11  

What worked for me was to copy all the files except the Utility directory from C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\VCProjectItems_WDExpress into C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcprojectitems

为我工作的是复制所有文件除了实用程序目录从C:\Program Files (x86)\Microsoft Visual Studio 14.0 \ VC \ VCProjectItems_WDExpress C:\Program Files (x86)\Microsoft Visual Studio 14.0 \ VC \ vcprojectitems

When I added an item (Right click on Source Files directory in Visual Studio Express Solution Explorer), all the cpp items were available.

当我添加一个项目(在Visual Studio Express解决方案资源管理器中右键单击源文件目录)时,所有cpp项目都可用。

#2


5  

I encountered this problem after downloading and installing Visual Studio Express 14.0 on April 16 2016. This seems to be the re-emergence of a problem encountered in earlier versions of Visual Studio Express. This is a link to a workaround for version 12.0, involving a straightforward edit to the registry:

我在2016年4月16日下载安装Visual Studio Express 14.0后遇到了这个问题。这似乎是Visual Studio Express早期版本中遇到的问题的再现。这是一个关于版本12.0的解决方案的链接,涉及到对注册表的简单编辑:

[HKEY_CURRENT_USER\Software\Microsoft\WDExpress\12.0_Config\Projects{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC943}\AddItemTemplates\TemplateDirs{F1C25864-3097-11D2-A5C5-00C04F7968B4}/1]

微软软件\[HKEY_CURRENT_USER \ \ WDExpress \ 12.0 _config bc9ceb8-8b4a-11d0-8d11-00a0c91bc943 { 8 } \ AddItemTemplates \ \项目TemplateDirs { f1c25864 - 3097 - 11 - d2 - a5c5 - 00 - c04f7968b4 } / 1)

"TemplatesDir"="C:\Program Files (x86)\Microsoft Visual Studio 12.0\\VC\VCProjectItems_WDExpress"

"TemplatesDir"="C:\Program Files (x86)\Microsoft Visual Studio 12.0\ VC\VCProjectItems_WDExpress"

I followed the instructions except for altering the version number from 12.0 to 14.0 where relevant, and it solved the problem.

除了将版本号从12.0更改为14.0(如果相关的话)之外,我遵循了说明,它解决了问题。

Possibly the problem arose because alongside the installation of Studio Express, it seems that a Microsoft Update updated the Microsoft Visual C++ Redistributable (x64) and (x86). The consequence was an error message at the end of the Studio Express installation, because the version number of these installed C++ components was higher than those included in the Studio Express download. Deinstalling the later versions and then rerunning the Studio Express installation was successful in so far as there was no error message, but this problem with New Item was there.

可能出现问题的原因是,在安装Studio Express的同时,微软的一个更新似乎更新了Microsoft Visual c++ Redistributable (x64)和(x86)。结果是Studio Express安装结束时出现了一条错误消息,因为这些已安装的c++组件的版本号比Studio Express下载中包含的版本号要高。在没有错误消息的情况下,卸载后的版本,然后重新运行Studio Express安装是成功的,但是New Item存在这个问题。