Hello,
As described in the official MAUI splash screen documentation, you need to add this code into the project file:
This creates a corresponding entry in your project file:
<ItemGroup>
<MauiSplashScreen Include="Resources\Splash\splashscreen.svg" />
</ItemGroup>
For editing project file, you could refer to the following methods to do it:
Method 1. In visual studio, you could double-click your project folder in Solution Explorer
to edit your project file.
Method 2. You could right click on your project name and click on Edit Project File
.
Method 3. You could open the folder where your MAUI project is located directly using Explorer, after which you could see a file with the suffix csproj
, and you could modify the project file directly using a text editor.
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.