How to fix Error DEP0700 Maui .NET7.0

Anjalee Gamage 10 Reputation points
2023-02-08T00:06:19.36+00:00

Can someone please help sort this deployment error once updated to .NET7.0

Error        DEP0700: Registration of the app failed. [0x80073CF6] AppxManifest.xml(33,27): error 0x80070003: Cannot install or update package chhlvl.designIT7_xzp7k71ajzmr6 because the splash screen image [SplashScreen.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.    designIT7   

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,745 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Kovalsky Nick 131 Reputation points
    2023-03-31T09:36:14.4466667+00:00

    Normally inside your .csproj file you would have a line like:

    <MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#000000" BaseSize="128,128" />
    
    	
    

    It works for all platforms except WIndows. To avoid this error add a copy of your splash.svg inside Resources\Images and add the following in the .csproj file:

    <MauiImage Update="Resources\Images\yourlogo.svg" BaseSize="208,208" />
    
    9 people found this answer helpful.
    0 comments No comments

  2. Sven Obermaier 5 Reputation points
    2024-01-29T17:04:52.93+00:00

    At the risk of being laughed at, I've spent too much time researching and trying to resolve this and a simple computer restart did the trick eventually. I had deleted my bin and obj folders, was required to run a dotnet restore command on the Maui project, and then faced this DEP0700 issue for hours. Using Visual Studio 17.8.5:

    1. Restart PC (I know)
    2. Clean and Rebuild solution
    1 person found this answer helpful.

  3. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 33,381 Reputation points Microsoft Vendor
    2023-02-09T06:45:03.8566667+00:00

    Hello,

    The cause of this problem should be that MAUI became preview 13 after you updated, but did not update the template to preview 13.

    There is an issue in GitHub with exactly the same error message as yours, please refer to The splash screen icon (Assets\appiconfgSplashScreen.png) listed in the manifest is not found #4736 and Migrating to Preview 13.

    Best Regards,

    Alec Liu.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  4. paramjit 276 Reputation points
    2023-08-17T15:45:45.42+00:00

    I used the suggested answer, added splash image to Images folder and add the following line in the csproj.

    <MauiImage Update="Resources\Images\splash.svg" BaseSize="208,208" />

    It solved the original issue but all the images stopped displaying in the App. I have to change the Build Action of the splash.svg in the Images folder to MauiImage. Now the images are being displayed.

    0 comments No comments