Desktop Bridge Window Store Application fails. Local Installation works

1

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.

c#
uwp
windows-store-apps
desktop-bridge
asked on Stack Overflow Jan 29, 2019 by Marx

1 Answer

2

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

answered on Stack Overflow Feb 7, 2019 by Marx

User contributions licensed under CC BY-SA 3.0