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.
https://aka.ms/windowsappsdk
Other
384 stars 89 forks source link

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

Open srdjanjovcic opened 3 years ago

srdjanjovcic commented 3 years ago

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.

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:

Visual Studio

ghost commented 3 years ago

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 🙌

Rybasum commented 3 years ago

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

michael-hawker commented 3 years ago

FYI @marb2000

marb2000 commented 3 years ago

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

ocalvo commented 3 years ago

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

michael-hawker commented 3 years ago

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

srdjanjovcic commented 3 years ago

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