Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25031] Windows: Unable to build a module when using SDK 10.0.15063.0 and VS 2015

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2017-08-22T01:55:17.000+0000
Affected Version/sRelease 6.1.0, Release 6.1.1
Fix Version/sn/a
ComponentsWindows
Labelsn/a
ReporterEwan Harris
AssigneeKota Iguchi
Created2017-07-27T13:48:04.000+0000
Updated2019-05-09T06:53:23.000+0000

Description

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

Install SDK 10.0.15063 https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk

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

Comments

  1. Kota Iguchi 2017-08-16

    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).
  2. Kota Iguchi 2017-08-17

    https://github.com/appcelerator/titanium_mobile_windows/pull/1077
  3. Samir Mohammed 2017-08-21

    [~kiguchi] [~eharris] Merged for master. Does it need a backport for 6_2_X?
  4. Kota Iguchi 2017-08-22

    Merged to 6_2_X: https://github.com/appcelerator/titanium_mobile_windows/pull/1082

JSON Source