What version of Visual Studio?

What version of Visual Studio have you all been using to work with the SDK?

Here is why I ask:
I just downloaded the SDK and am trying to get the examples working, but something is seriously awry - there are thousands of compiler errors and warnings (see screenshot).  I am running:
Windows 10 Pro, 64-bit  with VS Community 2015, Update 3.

Even though it may break some of my other projects, I am considering installing VS2017 and seeing if a clean install solves some of the problems.  Aside from the basic question above, if anybody has encountered similar setup issues and have any suggestions, I would be very grateful!

Greetings.

 

In order to be able to build the examples You need to have Windows SDK 8.1 installed and the project configured accordingly (this shall be done by default).

 

Please, also check the build target. CR SDK can be built only for x64 platform, not for Win32.

I haven’t fully puzzled it out, but I think there is at least one mistake in the automatic configuration files that come with the SDK examples.  The paths to the include files are not configured correctly, so I fixed all the errors by manually finding the include files needed and adding those locations to the include and library paths. 

However, the project still does not compile because it fails a version check by the MSBuild compiler.  The generated error is:

"“C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\x64\PlatformToolsets\v140\Toolset.targets(36,5): error MSB8036: The Windows SDK version 8.0 was not found. Install the required version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting “Retarget solution”.”

Digging deeper, I traced this error to a line in the VS project file.  This definition in the SfmExample.vcxproj file:

“<TargetPlatformVersion>8.0</TargetPlatformVersion>”

This shows up later in the toolset.targets file in the line that is causing the compiler error:

“<PropertyGroup Condition=”‘$(TargetPlatformVersion)’ == ‘8.1’ . . . "

Change that macro variable to 8.1 and now the project will compile and run!

I don’t know if my situation is somehow unique, but troubleshooting this cost me hours of time and I think my workaround is probably not ideal.  But moving on because it works!

The 8.1 version shall be backward compatible with the 8.0 version.

 

VisualStudio projects for Windows have a property configuring which Windows SDK to use.

 

Our SDK project originates from VisualStudio 2012. When You open it for the first time in a newer version (2017 in particular) You are present with a choice of SDK configuration, either SDK 8.1 or SDK 10. Maybe VS 2015 also gives such a choice.

 

To be sure, I have freshly installed the current RC SDK installation and I have been able to compile the example out of the box without any problems.

 

I suggest that You uninstall the RC SDK, correctly install VisualStudio & Windows SDK 8.1, and finally install the RC SDK again. Hope it helps.

I have to second Michael Sanchez’s bug report:

Retargeting does not work properly, because the project file contains a hard-link to Windows 8.0 SDK that does not get updated through automatic retargeting. One needs to manually fix this bug in order to compile the examples *IF* one does not have Windows 8.0 SDK installed but the (officially available) Windows 8.1 SDK.

Fixing the bug in the project file allows the solution to compile. The lines in the project files that need fixing are line 39 and line 43.

The bug will not pop up if you have an older 8.0 installation on your system, obviously. Which might explain why CR Milan was unable to reproduce the problem.

Marc