Microsoft.Toolkit.Win32 icon indicating copy to clipboard operation
Microsoft.Toolkit.Win32 copied to clipboard

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

Open srdjanjovcic opened this issue 3 years ago • 7 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:

  • [x] Desktop
  • [ ] Xbox
  • [ ] Surface Hub
  • [ ] IoT

Visual Studio

  • [ ] 2017 (version: )
  • [x] 2019 (version: 16.9.3)
  • [ ] 2019 Preview (version: )

srdjanjovcic avatar Apr 09 '21 17:04 srdjanjovcic

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 🙌

ghost avatar Apr 09 '21 17:04 ghost

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

Rybasum avatar Apr 11 '21 18:04 Rybasum

FYI @marb2000

michael-hawker avatar Apr 20 '21 23:04 michael-hawker

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

marb2000 avatar Apr 20 '21 23:04 marb2000

@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.

ocalvo avatar Apr 21 '21 02:04 ocalvo

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

michael-hawker avatar Apr 21 '21 17:04 michael-hawker

@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.

srdjanjovcic avatar Apr 21 '21 18:04 srdjanjovcic