安装 Visual Studio 2013 后的 Visual Studio 问题 [英] Visual studio issues after installing visual studio 2013

查看:36
本文介绍了安装 Visual Studio 2013 后的 Visual Studio 问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有 Windows 8 机器.我的计算机上安装了 Visual Studio 2010 和 Visual Studio 2012.

I have Windows 8 machine. I had visual studio 2010 and Visual Studio 2012 installed on my computer.

我安装了 Visual Studio 2013 预览版和 8.1 WDK.

I installed the visual studio 2013 preview, and the 8.1 WDK.

安装 Visual Studio 2013 后,我的 C++ 旧项目无法编译(在 Visual Studio 2012 中),因此我卸载了 Visual Studio 2013 和 WDK.

After I installed Visual Studio 2013, my old project in C++ wasn't able to be compiled (in Visual Studio 2012) so I uninstalled Visual Studio 2013 and the WDK.

但问题仍然存在,我无法编译我的 C++ 项目.我收到错误消息,例如找不到 Windows.h" 我查看了包含目录,发现包含以下内容:$(WindowsSDK_IncludePath).但是当我打开宏>>"时,我无法打开这个宏$(WindowsSDK_IncludePath)".

But the issue remains, i cannot compile my C++ project. I get error message such as "Windows.h cannot be found" I looked at the include directory and saw that I have the following include: $(WindowsSDK_IncludePath). but when I open "Macros>>" I can't this macro "$(WindowsSDK_IncludePath)".

我尝试卸载 Visual Studio 2010 和 2012 并重新安装它们,但没有解决问题.

I tried to uninstall Visual Studio 2010 and 2012 and reinstall them but it didn't fix the issue.

有人知道可能导致此问题的原因以及如何解决吗?

Does anyone know what might cause this issue and how to resolve it?

推荐答案

为了在 Visual Studio 2013 中构建 Windows 8 应用程序,您必须使用 Windows 8.1.(在此处定义).这可能是问题所在.

In order to build windows 8 apps in visual studio 2013, you must be using windows 8.1. (defined here). This is possibly the issue.

您也不会看到 windows sdk 包含路径,因为 wdk 将被卸载.我会推荐两件事之一

You also wouldn't see the windows sdk include path because the wdk would be uninstalled. I would recommend one of two things

  1. 再次获取 Visual Studio 2012,并下载 windows 8 sdk
  2. 获取 windows 8.1,然后安装 Visual Studio 2013,并使用 windows 8.1SDK

我知道,这很愚蠢.

这篇关于安装 Visual Studio 2013 后的 Visual Studio 问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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