I changed the icon of my game, but the monogame icon is still in the Taskbar.


How can I solve this problem?

1 Like

Hi @Direnc-Ogmen, Welcome to the Community.

Which project are you using?

Ensure the asset is set to ‘Copy if Newer’ in properties.

Happy Coding!

1 Like

Hey @Direnc-Ogmen ,

This is sort of a known issue/bug with the current DesktopGL templates, so I’m going to assume you’re using the DesktopGL project template. I’ve posted about this issue here Changing the `Icon.ico` or `Icon.bmp` Files Do Not Update Window TItle Icon or Taskbar Icon · Issue #8035 · MonoGame/MonoGame · GitHub and have put in a PR to resolve it.

But for now, if you want to manually fix it, edit your .csproj file for your project and find this section here

    <EmbeddedResource Include="Icon.ico" />
    <EmbeddedResource Include="Icon.bmp" />

And change it to the following

    <EmbeddedResource Include="Icon.ico">
    <EmbeddedResource Include="Icon.bmp">

This should resolve it for you so the correct icon shows in both the taskbar and your game window’s title bar


Thanks Aristurtle. This solution worked for me. But it looks like I had to rename my icons to Icon.ico and Icon.bmp for it to work.

Looking at your root cause mentioned here:

It seems to imply that SDL Game Window is requiring this hard coded name.

  + ".Icon.bmp")