3
votes

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
I reinstalled vs 2012 but it didn't help :(user844541
Ugh, installing alpha builds on a machine you need to get your job done is a really bad idea. A system restore point might help. That's a bit late though, uninstalling the older VS versions probably just added more trouble.Hans Passant
Still, is there away to remove all vs configurations?user844541

1 Answers

0
votes

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.