Visual studio issues after installing visual studi

2019-07-04 22:57发布

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

I installed the visual studio 2013 preview, and the 8.1 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.

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)".

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?

1条回答
Deceive 欺骗
2楼-- · 2019-07-04 23:37

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.

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

  1. get visual studio 2012 again, and download the windows 8 sdk
  2. get windows 8.1, then install visual studio 2013, and use the windows 8.1 sdk

I know, its quite silly.

查看更多
登录 后发表回答