Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.6.0
-
None
Description
Repro steps:
cordova create app cd app cordova platform add windows cordova plugin add https://github.com/apache/cordova-plugin-contacts cordova plugin add https://github.com/apache/cordova-plugin-contacts cordova build windows
Observe the following error
C:\temp\win81\contactsTest\platforms\windows\build\phone\debug\anycpu\AppxM anifest.xml(41,6): error APPX1404: File content does not conform to specified schema. The element 'Capabilities' in namespace 'http://schemas.microsof t.com/appx/2010/manifest' has invalid child element 'Capability' in namespace 'http://schemas.microsoft.com/appx/2014/manifest'. List of possible elem ents expected: 'DeviceCapabilityChoice, DeviceCapability' in namespace 'http://schemas.microsoft.com/appx/2010/manifest' as well as 'DeviceCapability' in namespace 'http://schemas.microsoft.com/appx/2013/manifest'. [C:\temp\w in81\contactsTest\platforms\windows\CordovaApp.Phone.jsproj]
package.phone.appxmanifest contains the following section which is invalid since all Capabilities should go before DeviceCapabilities
<Capabilities> <Capability Name="internetClientServer" /> <Capability Name="picturesLibrary" /> <DeviceCapability Name="webcam" /> <m3:Capability Name="contacts" /> </Capabilities>