Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19147] Windows: Building a project for ws-local with the --build-only flag errors out

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2015-07-28T00:11:16.000+0000
Affected Version/sRelease 4.1.0
Fix Version/sRelease 5.0.0
ComponentsCLI, Windows
Labelsqe-4.1.0
ReporterEwan Harris
AssigneeChristopher Williams
Created2015-07-02T20:13:06.000+0000
Updated2015-09-03T20:43:06.000+0000

Description

Description

When building a project for ws-local the build fails during the MSBuild phase with errors relating to the certificate files.
[WARN]  "C:\Users\Windo_000\AppData\Local\Temp\classicProject\store.x86\ClassicProject.vcxproj" (Rebuild target) (6) ->
       (_CreateMainPackage target) ->
         C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\AppxPackage\Microsoft.AppXPackage.Targets(2247,9): error APPX0104: Certificate fi
le 'undefined' not found. [C:\Users\Windo_000\AppData\Local\Temp\classicProject\store.x86\ClassicProject.vcxproj]
         C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\AppxPackage\Microsoft.AppXPackage.Targets(2247,9): error APPX0102: A certificate
with thumbprint 'undefined' that is specified in the project cannot be found in the certificate store. Please specify a valid thumbprint in the projec
t file. [C:\Users\Windo_000\AppData\Local\Temp\classicProject\store.x86\ClassicProject.vcxproj]
         C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\AppxPackage\Microsoft.AppXPackage.Targets(2247,9): error APPX0107: The certificat
e specified is not valid for signing. For more information about valid certificates, see http://go.microsoft.com/fwlink/?LinkID=241478. [C:\Users\Wind
o_000\AppData\Local\Temp\classicProject\store.x86\ClassicProject.vcxproj]
The issue still persists when passing the cert in using the --ws-cert flag

Steps to reproduce

1. Build a project using appc run -p windows -T ws-local --build-only 2. Either provide a cert of generate one

Actual result

The build will error out

Expected result

The build should not error out

Comments

  1. Christopher Williams 2015-07-27

    https://github.com/appcelerator/titanium_mobile_windows/pull/391
  2. Ewan Harris 2015-09-03

    Verified using: Windows 8.1 Appc CLI Core: 5.0.0-33 Appc CLI NPM: 4.2.0-1 Titanium SDK: 5.0.0.v20150902095518 When building a project using the following command, appc run -p windows -T ws-local --build-only, the project build successfully Closing ticket

JSON Source