@Nico Zhu (Shanghai Wicresoft Co,.Ltd.)
Because you cannot replicate this, I ask two things:
- Can you share your solution (via github, for example)? Perhaps there is an important difference in your project that would make a big difference for me. Again, I'm asking for help (if I'm at fault) or attention to this bug.
- I have created two short videos demonstrating how to create a project that fails - using ONLY VisualStudio 2019 - NOT
dotnet new unoapp
. I do this because I want to make it clear that this issue has NOTHING to do withunoapp
. I had to create two videos because I was using xbox game bar for the recordings and it wouldn't continuously record.
The first video (https://1drv.ms/v/s!AkPAsLOJX3DCwS0kE8TYTwk-XIWb?e=l8OpGx) shows how the UWP Application project was created (using Create a New Project / Blank App (Universal Windows)). The second video (https://1drv.ms/v/s!AkPAsLOJX3DCwS5V1X9WVjdMjLZb?e=MpTykB) shows the following:
- Adding the Button with the Flyout
- Successfully running the newly created UWP app (again, because I was using xbox game bar, you can only see VisualStudio, not the running app)
- Adding a new UWP Class Library, adding a new blank XAML Page to that library, and referencing that library in the UWP app project
- Successfully running the UWP app again
- Change the UWP App Build Settings to enable Native Toolchain
- Unsuccessfully running the UWP app again
The video should be very clear - this really appears to be a bug. I'm not doing anything beyond the most basic of operations in VisualStudio.
Again, I ask for consideration for this issue.