Desktop Bridge Window Store Application fails. Local Installation works

一曲冷凌霜 提交于 2021-02-08 06:48:53

问题


I have a Desktop Bridge application which launches a UWP window from the menu (Select Help > Contents to launch the UWP Window). The local installation (AppPackages\appName_Test\appName_x86_bundle.msixbundle) works fine.

I've uploaded AppPackages\appName_x86_bundle.msixupload to the Microsoft Store but the store version fails to launch the window. The window opens for a couple of seconds and then shuts down.

Debugging the installed store version I get the following exception:

Exception thrown at 0x750EB022 (KernelBase.dll) in <MyUwpExeHere>.exe: WinRT originate error - 0x80131500 : 'Method 'TreeView.add_ItemInvoked(TypedEventHandler<TreeView, TreeViewItemInvokedEventArgs>)' was not included in compilation, but was referenced in MainPage.Connect(int, object). There may have been a missing assembly.'.

The treeview control is from Microsoft.UI.Xaml.

Also when the app is locally installed there is a \WinMetadata\Windows.winmd file with reference information (including Windows.UI.Xaml.Controls.TreeView) in the install folder. It is missing from the Store installation.

The AppManifest.xml includes the dependencies:

  <Dependencies>
    <TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.17763.0" MaxVersionTested="10.0.17763.0"/>
    <PackageDependency Name="Microsoft.VCLibs.140.00" MinVersion="14.0.26706.0" Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US"/>
    <PackageDependency Name="Microsoft.Advertising.Xaml" MinVersion="10.1805.2.0" Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US"/>
    <PackageDependency Name="Microsoft.UI.Xaml.2.0" MinVersion="2.1810.18003.0" Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US"/>
    <PackageDependency Name="Microsoft.NET.Native.Framework.1.7" MinVersion="1.7.25531.0" Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US"/>
    <PackageDependency Name="Microsoft.NET.Native.Runtime.1.7" MinVersion="1.7.25531.0" Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US"/>
  </Dependencies>

The applications (one 32-bit and one 64-bit) always pass the store certification but the store installations fail as described - on all machines.

The dependency ".appx" files are not included in ".msixupload" which I think is expected.

Thanks for any help.


回答1:


The solution/workaround was to package using VS 2019 Professional preview edition. Thanks to @StefanWickMSFT for directions.



来源:https://stackoverflow.com/questions/54423924/desktop-bridge-window-store-application-fails-local-installation-works

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!