Now that the Windows Software Development Kit (SDK) for Windows 8 Consumer Preview has been released, I would like to show you how you can use the Windows 8 SDK with Visual Studio 10.
- In “Executable Directories” replace $(WindowsSdkDir)bin with $(ProgramFiles)\Windows Kits\8.0\bin\x86
- In “Include Directories” add $(ProgramFiles)\Windows Kits\8.0\Include\um;$(ProgramFiles)\Windows Kits\8.0\Include\shared at the beginning and remove $(WindowsSdkDir)include
- In “Library Directories” replace $(WindowsSdkDir)lib with $(ProgramFiles)\Windows Kits\8.0\lib\win8\um\x86
- In “Exclude Directories” replace $(WindowsSdkDir)include with $(ProgramFiles)\Windows Kits\8.0\Include\um;$(ProgramFiles)\Windows Kits\8.0\Include\shared
- When targeting x64, replace x86 with x64
That’s it – you should be ready to build and run!
Senior Test Lead
Visual C++ Team
Good post Alex! Go Yo Momma!
I assume this doesn't work with C++/CX? It seems that the SDK doesn't include a command line compiler tools.
@Brian - that is correct. We don't have the support in the VS 2010 C++ tools to compile C++/CX code. It is also correct that the Windows 8 SDK does not include compilers.
I am trying to build my an old project to include new windows 8 SDK by following above steps but it is failing with follow error-
1>D:\win8sdk\Include\um\winsdkver.h(21): fatal error C1083: Cannot open include file: 'winapifamily.h': No such file or directory
Your information is very good.I like it.it's very helpfull for me.keep it up. Thanks for shareing it.
Can I use ToastNotifier class to show a toast with vs2010 and win8 sdk?
More information here:
I want to develop a desktop application, this app will show a toast.
ToastNotifier class support both desktop and metro apps.
The problem is, for such desktop app want to show a toast, which develop envirment should be used.
Must VS2011? or I can use VS2010 + Win8 SDK.
Any help ? Thanks a lot!