maui: Deployment error 0700 when building as Windows app
Description
When using the Blazor bindings template, attempting to run the app on a windows machine throws an error complaining about a missing splash screen. The package name is a cryptic string. Possibly related issue.
Steps to Reproduce
- Create a Blazor project in the VS 2022 17.1 preview.
- Try to deply on windows machine.
Version with bug
Preview 10 (current)
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
Windows 10.0.17763.0
Did you find any workaround?
No.
Relevant log output
DEP0700: Registration of the app failed. [0x80073CF6] AppxManifest.xml(33,27): error 0x80070002: Cannot install or update package D1EABA91-12B1-4A84-AF36-***************** because the splash screen image [appiconfgSplashScreen.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.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (6 by maintainers)
Same problem here.
My .csproj contains these lines:
<MauiSplashScreen Include="Resources\appiconfg.svg" Color="#3064CE" />While my Package.appxmanifest file contains this:
<uap:SplashScreen Image="Assets\appiconfgSplashScreen.png" />When I try to deploy the app on my Windows Machine, I get this:
“DEP0700: Fehler beim Registrieren der App. [0x80073CF6] AppxManifest.xml(33,27): Fehler 0x80070003: Das Paket “8496B0C3-46D4-4C37-8FEF-A012F717C268_9zz4h110yvjzm” kann nicht installiert oder aktualisiert werden, da das Begrüßungsbildschirmbild [appiconfgSplashScreen.png] nicht geladen werden kann. Überprüfen Sie, ob das Paket ein Bild enthält, das als Begrüßungsbildschirm für die Anwendung verwendet werden kann, und ob das Paketmanifest auf den richtigen Speicherort des Begrüßungsbildschirmbilds im Paket verweist.” (sorry for german translation)
I did a search for *splash*.png within the bin/Debug folder and found a couple of appiconfgSplashScreen images right within the root folder that also contains all compiled DLLs.
They follow this naming-scheme:
appiconfgSplashScreen.scale-[nnn].png
There are 5 of them:
For testing purposes, I edited the Package.appxmanifest file and removed the folder from the file reference:
<uap:SplashScreen Image="appiconfgSplashScreen.png" />Now the app gets deployed and executed. However, no splash screen rendered.
Also I noted, that every other appearance of any image such as the Logo or the Tile also reference respective generated PNGs within the Assets folder that does not seem to exist. Thus, when executed, the apps’ icon in the taskbar is also empty. When I remove the "Assets" folder reference in the properties, the taskbar shows the correct image.
Also, I didn’t find out, what setting is responsible for the windows’ titlebar icon on the top left. This one is always set to default.
[UPDATE] I just updated my maui workloads to preview 12 and now the AppIcon as well as the SplashScreen are deployed to the Assets subfolder.
You are correct. Fixing the file name in the Package.appxmanifest solved the problem for me. Thanks alot
@mikegoatly - that definitely doesn’t look right and shouldn’t happen. Can you file that in a new issue so that we can track it?