Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows app asking for splash screen on installation of app Win 11 and Win 10 #27207

Open
MarianHristov92 opened this issue Jan 17, 2025 · 2 comments
Labels
migration-compatibility Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert platform/windows 🪟 s/needs-info Issue needs more info from the author t/bug Something isn't working

Comments

@MarianHristov92
Copy link

Description

There is an issue with the publishing of release version for Windows apps. After you publish the app and try to install it at the 99% of the installation you receive:
App installation failed with error message: AppxManifest.xml(34,27): error 0x80070002: Cannot install or update package MauiApp1_k78q5atfj1762 because the splash screen image [splashSplashScreen.png] cannot be located. Verify that the package contains an image that can be used as a splash screen for the application, and that the package manifest points to the correct location in the package where this splash screen image can be found. (0x80070002)

By default the WinUI apps shouldn't have Splash screens even though it requires one.
Tried with clean, rebuild, delete of bin/obj files, restarting of the VS, machine restarting but the result remains the same.

Steps to Reproduce

  1. Unzip the attached file
  2. Build the project with Release | Any CPU
  3. Open command prompt
  4. Go to the project location where the .csproj file is located
  5. Write dotnet publish MauiApp1.csproj -f net9.0-windows10.0.19041.0 -c Release
  6. Wait for it to be build
  7. Go to the location inside of the project: bin\Release\net9.0-windows10.0.19041.0\win10-x64\AppPackages and select the release build
  8. Click on the MSIX
  9. If you don't have authorization follow this guide to obtain trust in the certificate:
    https://beebom.com/how-fix-publisher-could-not-be-verified-error-windows-11/
  10. Click on MSIX file again after you enable the authorization

PS. Attached is .cer file:
Account: M1
Password: Test1234

MauiApp1.zip

Link to public reproduction project repository

No response

Version with bug

9.0.30 SR3

Is this a regression from previous behavior?

Yes, this used to work in Xamarin.Forms

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

windows10.0.19041.0 and above

Did you find any workaround?

No response

Relevant log output

@MarianHristov92 MarianHristov92 added the t/bug Something isn't working label Jan 17, 2025
@jfversluis
Copy link
Member

It looks like you have an old version of the templates because you state that this is .NET 9 and the csproj has .NET 9 but the MainPage shows the .NET 8 bot. For a brief while we had some transition thing for the Windows splash screen indeed, maybe thats what you're still seeing here?

If you do dotnet new uninstall does that give you something? If you do dotnet new update does that update the template for you and give you the hover bot instead of the race car bot and does that resolve it?

@jfversluis jfversluis added the s/needs-info Issue needs more info from the author label Jan 17, 2025
Copy link
Contributor

Hi @MarianHristov92. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@samhouts samhouts added platform/windows 🪟 migration-compatibility Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert labels Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
migration-compatibility Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert platform/windows 🪟 s/needs-info Issue needs more info from the author t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants