Home > Mobile >  I can't set a .svg file as a maui app icon
I can't set a .svg file as a maui app icon

Time:05-27

I can't set my .svg file as my app icon. I put the .svg file inside the Resources folder and changed its "Build Actions" properties to MauiIcon and in the .csproj file I wrote: [1]: https://i.stack.imgur.com/8YDAo.png

CodePudding user response:

Try the following steps

  1. Make it a basic svg file , you can take a png file and use tool to convert it to svg file .

  2. Call the file the same as the default so appicon.svg, edit in your .csproj

    <MauiIcon Include="Resources\appicon.svg" />    
    

Refer to https://github.com/dotnet/maui/issues/3755#issuecomment-1063138958 .

  • Related