Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-9159

Fix Windows Phone 8.1 deploy when 'window-target-version' is 10.0

    XMLWordPrintableJSON

    Details

      Description

      I'm using the following configuration to upgrade desktop app to Windows10 and continue using 8.1 for Windows Phone target.

      <preference name="windows-target-version" value="10.0" />
      <preference name="windows-phone-target-version" value="8.1" />
      

      Deploy to Phone fails as it incorrectly tries to find and deploy Windows10 package

      λ cordova run windows -- --phone
      Running command: cmd "/s /c "C:\temp\winDeployTest\platforms\windows\cordova\run.bat --phone""
      MSBuildToolsPath: C:\Program Files (x86)\MSBuild\14.0\bin\amd64\
      Building project: C:\temp\winDeployTest\platforms\windows\CordovaApp.Phone.jsproj
              Configuration : debug
              Platform      : anycpu
        CordovaApp.Phone -> C:\temp\winDeployTest\platforms\windows\AppPackages\CordovaApp.Phone_0.0.1.0_anyc
        pu_debug_Test\CordovaApp.Phone_0.0.1.0_anycpu_debug.appx
        CordovaApp.Phone -> C:\temp\winDeployTest\platforms\windows\AppPackages\CordovaApp.Phone_0.0.1.0_anyc
        pu_debug.appxupload
        Your package has been successfully created.
      ERROR: Package with specified parameters not found in AppPackages folder
      ERROR running one or more of the platforms: Error: cmd: Command failed with exit code 2
      You may not have the required environment or OS to run this project
      

        Attachments

          Activity

            People

            • Assignee:
              sgrebnov Sergey Grebnov
              Reporter:
              sgrebnov Sergey Grebnov
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: