Create App Packages doesn't actually create an appxbundle file?

余生长醉 提交于 2019-11-29 16:49:47

I haven't done a Windows Phone app yet, but it might be same issue as with Android and iOS app builds. Is your "Attach..." dropdown selected to Device? For Android and iOS builds, it will not create the store package unless you select Device.

Currently creating appx bundle from Create App Package wizard is not supported. As a workaround you can either open native project and use Create App Package wizard to create appx bundle or you can modify the jsproj file to add property to indicate msbuild that you want to create appx bundle always.

Workaround:

  1. Open native project -- after building the project, you will find native project under platforms\windows directory.
  2. In native project, you can use Create App Package wizard to specify that you want to create Bundle.

OR

1.) Another way to create appx bundle is to modify the jsproj (project file) by adding following properties and then building the project.

 <AppxBundle>Always</AppxBundle>
 <AppxBundlePlatforms>neutral</AppxBundlePlatforms>

like

<PropertyGroup>
    <TargetPlatformIdentifier>Windows</TargetPlatformIdentifier>
    <TargetPlatformVersion>8.1</TargetPlatformVersion>
    <RequiredPlatformVersion>8.1</RequiredPlatformVersion>
    <MinimumVisualStudioVersion>12.0</MinimumVisualStudioVersion>
    <DefaultLanguage>en-US</DefaultLanguage>
    <PackageCertificateKeyFile>CordovaApp_TemporaryKey.pfx</PackageCertificateKeyFile>
    <AppxAutoIncrementPackageRevision>True</AppxAutoIncrementPackageRevision>
    <AppxBundle>Always</AppxBundle>
    <AppxBundlePlatforms>neutral</AppxBundlePlatforms>
  </PropertyGroup>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!