CommunityToolkit / Microsoft.Toolkit.Win32

ARCHIVE - This repository contained XAML Islands wrapper controls and tooling for XAML Islands with WinUI 2, see readme for more info about XAML Islands with WinUI 3 and the WindowsAppSDK.

Home Page:https://aka.ms/windowsappsdk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Payload from UWP project does not appear in WAPPROJ ⇒ Desktop app ⇒ UWP app reference sequence

srdjanjovcic opened this issue · comments

Describe the bug

When you have a following chain of references:

WAPPROJ C++ desktop app with Microsoft.Toolkit.Win32 UWP app

...any resources from UWP app (for example, XBF files) do not appear in WAPPROJ.

  • Is this bug a regression in the toolkit? If so, what toolkit version did you last see it work:
    I do not know. I am opening bug on behalf of customer.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Unpack attached ToolkitRepro.zip
  2. Open in Visual Studio
  3. Build Package project.
  4. Examine **Package\bin\x86\Debug\Package.build.appxrecipe
  5. Notice that there is no MainPage.xbf listed.

Expected behavior

.appxrecipe of WAPPROJ should contain all payload from UWP app.

NuGet Package(s):
See DesktopApp\packages.config

Device form factor:

  • Desktop
  • Xbox
  • Surface Hub
  • IoT

Visual Studio

  • 2017 (version: )
  • 2019 (version: 16.9.3)
  • 2019 Preview (version: )

Hello srdjanjovcic, thank you for opening an issue with us!

I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌

Hi Microsoft,
I'm the customer who raised the original issue. In my solution (a copy of which I sent to Srdjan) I use Microsoft.Toolkit.Win32.UI.SDK.6.1.2 and Microsoft.Toolkit.Win32.UI.XamlApplication.6.1.2. Everything works fine with Visual Studio 16.9.0 and below but the very same project, using the same toolkit version, does not work with VS 16.9.1 and above.
Kind regards,
Marcin

@ocalvo any idea? I thought C++ XAML Islands were working on the past.

@ocalvo any idea? I thought C++ XAML Islands were working on the past.

The only thing that has changed is VS. Perhaps there was a breaking change in VS.

@marb2000 think you could verify and pull in someone from VS?

@michael-hawker, @marb2000 -- that would be probably me (or someone from my team). 🙂

Original VS feedback ticket: https://developercommunity.visualstudio.com/t/CWinRT-Desktop-bridge-app-throws-0x80/1386688

There are additional logs there, if you are signed in with MSFT credentials.