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 · 4 comments
Labels
migration-compatibility Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert platform/windows 🪟 s/needs-attention Issue has more information and needs another look s/triaged Issue has been reviewed 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
@samhouts samhouts added platform/windows 🪟 migration-compatibility Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert labels Jan 17, 2025
@MarianHristov92
Copy link
Author

Ok, after some checks I made a new .Net 9 project and that seems to not be having this issues. However when I upgrade from .NET 8 to .NET 9 I continue to have this issue. Is there some additional manual for transitioning since I check the transition link you have sent me and it does seem that I have done all of these already.

@dotnet-policy-service dotnet-policy-service bot added s/needs-attention Issue has more information and needs another look and removed s/needs-info Issue needs more info from the author labels Jan 20, 2025
@RoiChen001 RoiChen001 added s/triaged Issue has been reviewed s/try-latest-version Please try to reproduce the potential issue on the latest public version labels Jan 21, 2025
@RoiChen001
Copy link

RoiChen001 commented Jan 21, 2025

This problem cannot be reproduced on the latest 17.13 preview 2.1(9.0.30).

@MarianHristov92
Copy link
Author

MarianHristov92 commented Jan 21, 2025

I fixed it using the following steps:

  1. Close the project and delete Bin/obj files
  2. Updated to the latest version (9.0.30)
  3. In the item group where is your spash screen and icons add:
    <MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
  4. Add this property group:
    <PropertyGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows' and '$(Configuration)' == 'Release'"> <PackageCertificateThumbprint>YourCertificateCodeThatYouGetWhenYouMakeCertificate</PackageCertificateThumbprint> <AppxPackageSigningEnabled>True</AppxPackageSigningEnabled> </PropertyGroup>
  5. Rebuild project and publish a new version
  6. Worked

@dotnet-policy-service dotnet-policy-service bot removed the s/try-latest-version Please try to reproduce the potential issue on the latest public version label Jan 21, 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-attention Issue has more information and needs another look s/triaged Issue has been reviewed t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants