WindowsAppSDK icon indicating copy to clipboard operation
WindowsAppSDK copied to clipboard

Application as a ShareTarget works but it's opening an additional window with the splash image

Open itonx opened this issue 2 years ago • 1 comments

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:

  1. 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). image image image
  2. Set up the application as a Share Target by updating the Package.appxmanifest. image
  3. Run the application. image
  4. Go to a file and share it using the WinUI3 application. image image

Two windows will be opened:

  • The WinUI3 application.
  • A blank window with the splash logo. image

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:

  1. Uninstall the WinUI3 app from Windows (and stop the app if you're running it with visual studio). image
  2. Replace the Assets/SplashScreen.scale-200.png file with a custom png file. image
  3. Clean the solution.
  4. Build the solution.
  5. Run the application. image
  6. Share a file using the WinUI3 app. image image

Two windows will be opened: image

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: image image

itonx avatar Nov 08 '23 03:11 itonx

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

michael-hawker avatar Nov 08 '23 20:11 michael-hawker

Dupe of #3941. See the comment that I added there for me info.

kmahone avatar Mar 01 '24 21:03 kmahone