You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Sergey Grebnov (JIRA)" <ji...@apache.org> on 2014/03/06 19:02:47 UTC

[jira] [Assigned] (CB-5038) Powershell error while installing Windows8 build using cordova-cli for 3.1.x

     [ https://issues.apache.org/jira/browse/CB-5038?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sergey Grebnov reassigned CB-5038:
----------------------------------

    Assignee: Sergey Grebnov  (was: Jesse MacFadyen)

> Powershell error while installing Windows8 build using cordova-cli for  3.1.x
> -----------------------------------------------------------------------------
>
>                 Key: CB-5038
>                 URL: https://issues.apache.org/jira/browse/CB-5038
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI, Windows 8
>    Affects Versions: 3.1.0
>         Environment: Windows8, Cordova CLI 3.1.0
>            Reporter: Sergey Grebnov
>            Assignee: Sergey Grebnov
>            Priority: Minor
>
> 1. add windows8 platform
> 2. Trigger build by running the following command
>  cordova build windows8 --verbose
> 3. Observe: application was build successfully, but powershell install script has failed (see trace message below).
> This is due to the following problem: by default No powershell scripts can be run w/o changing system settings (PowerShell Security restriction).
> See http://technet.microsoft.com/en-us/library/ee176847.aspx
> Get-ExecutionPolicy returns Restricted by default
> To get this working you should change this settings, for example by running
> powershell Set-ExecutionPolicy Unrestricted
> I propose to fix this functionality (at least add user friendly message explaining issue cause, possible workaround and updating docs on cordova-cli home) or to remove this step as unnecessary for build as per 
> https://issues.apache.org/jira/browse/CB-4944
> ----------------------
> cordova build windows8 --verbose
> cordova library for "windows8" already exists. No need to download. Continuing.
> Calling plugman.prepare for platform "windows8"
> Preparing windows8 project...
> Processing configuration changes for plugins.
> creating jsproj from project at : C:\projects\MyApp2\platforms\windows8\CordovaApp.jsproj
> Iterating over installed plugins: []
> Writing out cordova_plugins.js...
> Compiling platform "windows8" with command ""C:\projects\MyApp2\platforms\windows8\cordova\build"" (output to follow)...
> Building Cordova Windows 8 Project:
> 	Configuration : Debug
> 	Directory : C:\projects\MyApp2\platforms\windows8
> Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
> C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets(808,9): warning APPX2101: File 'VisualStudioEdition' is not found or is not an executable file. [C:\projects\MyApp2\platforms\windows8\CordovaApp.jsproj]
>   CordovaApp -> C:\projects\MyApp2\platforms\windows8\AppPackages\CordovaApp_1.0.0.0_AnyCPU_Debug_Test\CordovaApp_1.0.0.0_AnyCPU_Debug.appx
>   CordovaApp -> C:\projects\MyApp2\platforms\windows8\AppPackages\CordovaApp_1.0.0.0_AnyCPU_Debug.appxupload
>   Your package has been successfully created.
> Running Command :: PowerShell C:\projects\MyApp2\platforms\windows8\AppPackages\CordovaApp_1.0.0.0_AnyCPU_Debug_Test\Add-AppDevPackage.ps1
> Error running PowerShell script : 1
> Platform "windows8" compiled successfully.



--
This message was sent by Atlassian JIRA
(v6.2#6252)