Hello,
Please open the .csproj
file of your MAUI project, then declare a specific icon for Windows and for other platforms.
<ItemGroup>
<!-- App icon for Windows -->
<MauiIcon Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'"
Include=... />
<!-- App icon for all other platforms -->
<MauiIcon Include=... />
</ItemGroup>
You can also change the condition for different platforms: 'ios'
'maccatalyst'
'android'
'windows'
.
Note: Please clean the project and uninstall the app from the target platform to see your new icon.
For more details, you could refer to Change the app icon - .NET MAUI | Microsoft Learn
Best Regards,
Wenyan Zhang
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.