Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19148] Windows: Errors thrown by MSBuild are logged at the warn level

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2015-07-27T23:53:04.000+0000
Affected Version/sRelease 4.1.0
Fix Version/sRelease 5.0.0
ComponentsCLI, Windows
Labelsqe-4.1.0
ReporterEwan Harris
AssigneeGary Mathews
Created2015-07-02T20:23:43.000+0000
Updated2015-09-03T20:45:28.000+0000

Description

Description

When a build fails in the MSBuild phase the errors are logged in the CLI at the warn level see below for an example
[WARN]  C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\AppxPackage\Microsoft.AppXPackage.Targets(2247,9): error APPX0105: Cannot import the key file 'C:\Users\Windo_000\Documents\Appcelerator_Studio_Workspace\classicProject\generated.pfx'. The key file may be password protected. To correct this, try to import the certificate manually into the current user's personal certificate store. [C:\Users\Windo_000\AppData\Local\Temp\classicPro
ject\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 certificate 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]
Errors should be surfaced to the error level of logging

Steps to reproduce

1. Build a project using appc run -p windows -T ws-local 2. Either provide a cert of generate one, when entering the password enter an incorrect password

Actual result

The build will error and the errors will be surfaced to the warn log level

Expected result

The errors should surface to the error log level

Comments

  1. Gary Mathews 2015-07-27

    PR: https://github.com/appcelerator/titanium_mobile_windows/pull/392
  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 Errors from MSBuild are now thrown at the error level
       [ERROR] "C:\Users\Ewan\AppData\Local\Temp\preProdTeamAlloy\store.x86\PreProdTeamAlloy.sln" (default target) (1) ->
              "C:\Users\Ewan\AppData\Local\Temp\preProdTeamAlloy\store.x86\PreProdTeamAlloy.vcxproj.metaproj" (default target) (2) ->
              "C:\Users\Ewan\AppData\Local\Temp\preProdTeamAlloy\store.x86\PreProdTeamAlloy.vcxproj" (default target) (6) ->
              (_CreateMainPackage target) ->
                C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\AppxPackage\Microsoft.AppXPackage.Targets(2247,9): error APPX0105: Cannot import the key file 'F
       :\Documents\Appcelerator_Studio_Workspace\preProdTeamAlloy\generated.pfx'. The key file may be password protected. To correct this, try to import the certificate man
       ually into the current user's personal certificate store. [C:\Users\Ewan\AppData\Local\Temp\preProdTeamAlloy\store.x86\PreProdTeamAlloy.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 project file. [C:\Users\Ewan\AppData
       \Local\Temp\preProdTeamAlloy\store.x86\PreProdTeamAlloy.vcxproj]
                C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\AppxPackage\Microsoft.AppXPackage.Targets(2247,9): error APPX0107: The certificate specified is
       not valid for signing. For more information about valid certificates, see http://go.microsoft.com/fwlink/?LinkID=241478. [C:\Users\Ewan\AppData\Local\Temp\preProdTea
       mAlloy\store.x86\PreProdTeamAlloy.vcxproj]
       
    Closing ticket

JSON Source