Description
When building a module with 10.0.15063 the module build process will error out with the below
[WARN] 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 [C:\Users\ewan\Documents\Appcelerator_Studio_Workspace\myawesomemod\windows\Windows10.ARM\ComFoo.vcxproj]
[WARN] 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 [C:\Users\ewan\Documents\Appcelerator_Studio_Workspace\myawesomemod\windows\Windows10.ARM\ComFoo.vcxproj]
[TRACE] Done Building Project "C:\Users\ewan\Documents\Appcelerator_Studio_Workspace\myawesomemod\windows\Windows10.ARM\ComFoo.vcxproj" (default targets) -- FAILED.
[TRACE] Done Building Project "C:\Users\ewan\Documents\Appcelerator_Studio_Workspace\myawesomemod\windows\Windows10.ARM\ComFoo.vcxproj.metaproj" (default targets) -- FAILED.
[TRACE] Done Building Project "C:\Users\ewan\Documents\Appcelerator_Studio_Workspace\myawesomemod\windows\Windows10.ARM\ALL_BUILD.vcxproj.metaproj" (default targets) -- FAILED.
Done Building Project "C:\Users\ewan\Documents\Appcelerator_Studio_Workspace\myawesomemod\windows\Windows10.ARM\ComFoo.sln" (default targets) -- FAILED.
[DEBUG] Build FAILED.
[WARN] "C:\Users\ewan\Documents\Appcelerator_Studio_Workspace\myawesomemod\windows\Windows10.ARM\ComFoo.sln" (default target) (1) ->
"C:\Users\ewan\Documents\Appcelerator_Studio_Workspace\myawesomemod\windows\Windows10.ARM\ALL_BUILD.vcxproj.metaproj" (default target) (2) ->
"C:\Users\ewan\Documents\Appcelerator_Studio_Workspace\myawesomemod\windows\Windows10.ARM\ComFoo.vcxproj.metaproj" (default target) (3) ->
"C:\Users\ewan\Documents\Appcelerator_Studio_Workspace\myawesomemod\windows\Windows10.ARM\ComFoo.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 [C:\Users\ewan\Documents\Appcelerator_Studio_Workspace\myawesomemod\windows\Windows10.ARM\ComFoo.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 [C:\Users\ewan\Documents\Appcelerator_Studio_Workspace\myawesomemod\windows\Windows10.ARM\ComFoo.vcxproj]
0 Warning(s)
2 Error(s)
Time Elapsed 00:00:00.66
Unlike TIMOB-24908 this issue is not resolved by setting a targetsdkversion
Steps to reproduce
Run appc new -t timodule --id com.foo -n myawesomemodule
cd myawesomemodule/windows
appc run -p windows --build-only
Actual
Error above is thrown
Expected
Should be able to build module
This one is fixed for now, along with TIMOB-25166. If I remember correctly original issue was fixed [since I updated nuget.exe](https://github.com/appcelerator/titanium_mobile_windows/commit/43d6b4a0332b59bbc36efb5f23567d8b4591dc6f).
https://github.com/appcelerator/titanium_mobile_windows/pull/1077
[~kiguchi] [~eharris] Merged for master. Does it need a backport for 6_2_X?
Merged to 6_2_X: https://github.com/appcelerator/titanium_mobile_windows/pull/1082