Application as a ShareTarget works but it's opening an additional window with the splash image
Describe the bug
Original report in MAUI issue #18536
Same problem with a new fresh WinUI3 application.
Steps to reproduce the bug
I described all steps for a .NET MAUI application here
For WinUI3 it's kind of the same:
- Create a new WinUI3 application (I used the Template Studio for WinUI but it's the same if you create the app with the "Blank App, Packaged (WinUI 3 in Desktop)" option).
- Set up the application as a Share Target by updating the Package.appxmanifest.
- Run the application.
- Go to a file and share it using the WinUI3 application.
Two windows will be opened:
- The WinUI3 application.
- A blank window with the splash logo.
WinUI3 is also showing the splash logo in the blank window. The difference between .NET MAUI and WinUI3 is that WinUI3 has the splash logo at Assets/SplashScreen.scale-200.png. You can confirm that with the next steps:
- Uninstall the WinUI3 app from Windows (and stop the app if you're running it with visual studio).
- Replace the Assets/SplashScreen.scale-200.png file with a custom png file.
- Clean the solution.
- Build the solution.
- Run the application.
- Share a file using the WinUI3 app.
Two windows will be opened:
Expected behavior
Only the application window should be opened after selecting the application to share a file.
Screenshots
No response
NuGet package version
None
Packaging type
Packaged (MSIX)
Windows version
No response
IDE
Visual Studio 2022
Additional context
I am using Windows 11 version 23H2 (OS Build 22631.2506)
More info:
@itonx, do you think this is just a duplicate of the issue I had opened? https://github.com/microsoft/WindowsAppSDK/issues/3941
I included my minimal repo project (and comparison with UWP) there as well.
Dupe of #3941. See the comment that I added there for me info.