I have created a simple out-of-the-box .NET MAUI Blazor for net8.windows (only). I am using Visual Studio 2022 version 17.14.9 with maui workload 9.0.51. The splash screen image (splashscreen.svg) is located in the "Resources/Splash" folder. I have set the Build Action of the splash screen image to "MauiSplashScreen". When I run the application on Windows, the splash screen doesn't show. I have tried all of the below:
Clean and Rebuild: Delete the bin and obj folders in your project directory. Clean Solution: In Visual Studio, go to "Build" > "Clean Solution." Rebuild Solution: Then, "Build" > "Rebuild Solution." Restart Visual Studio: Close and reopen Visual Studio to ensure all cached data is cleared. Uninstall and Reinstall: I have tried uninstalling the app from your Windows machine and then redeploying it.
Here is a snippet of my .csproj file
<ItemGroup>
<!-- App Icon -->
<MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" Color="#512BD4" />
<!-- Splash Screen -->
<MauiSplashScreen Include="Resources\Splash\splashscreen.svg" />
<!-- Images -->
<MauiImage Include="Resources\Images\*" />
<MauiImage Update="Resources\Images\dotnet_bot.svg" BaseSize="168,208" />
<MauiImage Update="Resources\Images\splashscreen.svg" />
<!-- Custom Fonts -->
<MauiFont Include="Resources\Fonts\*" />
<!-- Raw Assets (also remove the "Resources\Raw" prefix) -->
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
</ItemGroup>
Any help would be appreciated.
Windows (or macOS) apps do not have a built-in concept for splash screens. These are only displayed on iOS and Android.