Search code examples
cordovavisual-studio-2015windows-phone-8.1winjswindows-10-mobile

Cannot build cordova windows platform (error APPX1609)


Since updating to Microsoft Visual Studio 2015 Update 3 (KB3165756) today I cannot build my cordova windows application anymore by:

cordova build windows -- --appx=8.1-phone

Because of the following error:

Package.appxmanifest(2,2): error APPX1609: The package contains a Debug framework reference 'Name=Microsoft.Phone.WinJS.2.1, MinVersion=1.0.9651.0'. Ensure all framework references in the package are valid frameworks hosted by the Store.

My working environment:

  • Visual Studio 14.0.25431.01 Update 3
  • Cordova 6.3.1
  • Cordova-Windows 4.4.2

Solution

  • Re-adding the windows platform actually helped me:

    cordova platform remove windows
    cordova platform add windows