Description:
Trying to build a module while having Windows SDK 10.0.15063.0 installed, fails to build with:
[WARN] "D:\performance-windows\PerformanceModule\windows\Windows10.Win32\ComPropelicsPerformancemodule.sln" (default target) (1) ->
"D:\performance-windows\PerformanceModule\windows\Windows10.Win32\ALL_BUILD.vcxproj.metaproj" (default target) (2) ->
"D:\performance-windows\PerformanceModule\windows\Windows10.Win32\ComPropelicsPerformancemodule.vcxproj.metaproj" (default target) (3) ->
"D:\performance-windows\PerformanceModule\windows\Windows10.Win32\ComPropelicsPerformancemodule.vcxproj" (default target) (5) ->
(ClCompile target) ->
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\vccorlib.h(348): error C3940: 'EventRegistrationToken': identifier not found - possible mismatch between compiler and library versions. Please ensure vccorlib.h/.lib, vccorlib120.dll and c1xx.dll match [D:\performance-windows\PerformanceModule\windows\Windows10.Win32\ComPropelicsPerformancemodule.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\vccorlib.h(348): fatal error C1903: unable to recover from previous error(s); stopping compilation [D:\performance-windows\PerformanceModule\windows\Windows10.Win32\ComPropelicsPerformancemodule.vcxproj]
Steps to replicate:
1. Create any windows module project and try to build it with WinSDK 10.15063 installed.
More details:
This also happens when building an Application but, in that scenario using the --wp-sdk 10.0.14393.0 solves the problem. On a module, it does not.
Also tried TIMOB-24402 and specifying the aforementioned SDK version in the manifest to no avail.
Workaround:
The work around for this is opening the generated project files and manually selecting the Target Platform however, it would be preferred to be able to build in such a scenario directly from the CLI without having to open Visual Studio.
Duplicate of TIMOB-25031