Microsoft.Toolkit.Win32
Microsoft.Toolkit.Win32 copied to clipboard
Payload from UWP project does not appear in WAPPROJ ⇒ Desktop app ⇒ UWP app reference sequence
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:
- Unpack attached ToolkitRepro.zip
- Open in Visual Studio
- Build
Package
project. - Examine **
Package\bin\x86\Debug\Package.build.appxrecipe
- 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: )
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
FYI @marb2000
@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.