安装Visual Studio 2010(任何版本)在C ++标头目录中仅安装2个文件 [英] Installation of Visual Studio 2010 (any edition) installs only 2 files in the C++ headers directory

查看:97
本文介绍了安装Visual Studio 2010(任何版本)在C ++标头目录中仅安装2个文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows 7工作站上安装了Visual Studio 2010 Premium.加载测试C ++项目后,我注意到它无法找到iostream.我查看了 C:\ Program Files(x86)\ Microsoft Visual Studio 10.0 \ VC \ include ,发现这里只有两个文件srv.h和wmiatlprov.h

I installed Visual Studio 2010 Premium on my Windows 7 workstation. After loading a test C++ project, I noticed that it could not locate iostream. I took a look in C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include and noticed that only two files exist here, srv.h and wmiatlprov.h

我在测试虚拟机上安装了VS2010产品,并且该目录( ... \ VC \ include )充满了通常的文件夹和标头集合(您期望的材料)可以在includes目录中找到.)

I installed the VS2010 product on a test virtual machine, and this directory (...\VC\include) is filled with the usual collection of folders and headers (the materials you'd expect to find in the includes directory.)

我已采取以下步骤纠正问题工作站上缺少的标题:

I have taken the following steps to rectify the missing headers on the problem workstation:

  • 已验证我没有激活的A/V软件(我正在使用MS Security Essentials,实时性已禁用)
  • 卸载了Visual Studio 2010 Premium和Programs&功能
  • 使用/full和/netfx参数运行VS2010卸载工具
  • 从程序文件和程序文件(x86)中删除Visual Studio 10.0目录
  • 从MSDN上新下载的ISO重新安装Visual Studio 2010.

我也完成了上述步骤,但是使用了另一个版本的VS2010 Professional重新安装.

I also completed the above steps, but used a different edition for the reinstall, VS2010 Professional.

到目前为止,以上所有内容都无法生产出已安装的Visual Studio 2010产品,该产品具有安装在我的工作站上的所有C ++标头.

So far, nothing above has been able to produce an installed Visual Studio 2010 product with all of the C++ headers installed on my workstation.

想法?

推荐答案

此问题的解决方案如下.它基于

The solution to this problem is as follows. It is based on the solution given in

http ://connect.microsoft.com/VisualStudio/feedback/details/774158/re-installed-visual-studio-2010-and-c-standard-headers-are-missing

  • 卸载Visual Studio 2010.
  • 卸载Visual Studio 2010 SP1(尽管给出警告).
  • 打开注册表编辑器(regedit).
  • 搜索名为PaddedVersion的键
  • 删除所有父键VisualStudio \ 10.0 \ VC \ Libraries或类似键(请注意版本号10.0,对应于2010).删除所有这些注册表路径.搜索PaddedVersion键只是为了简化此搜索.
  • 安装Visual Studio 2010.
  • 安装Visual Studio 2010 SP1.

此解决方案可能不是最小的方法,但对我有用.希望其他人可以确认.此处的重要区别是,如上面的链接所示,不仅仅是注册表项必须从中删除的HKEY_LOCAL_MACHINE.

This solution may not be minimal, but it works for me. Hopefully others can confirm. The important difference here is that it is not just the HKEY_LOCAL_MACHINE from which the registry path must be deleted, as indicated in the link above.

这篇关于安装Visual Studio 2010(任何版本)在C ++标头目录中仅安装2个文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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