
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
 <ItemGroup>
    <EmbeddedResource Include="Icon.ico" />
    <EmbeddedResource Include="Icon.bmp" />
  </ItemGroup>
And change it to the following
<ItemGroup>
    <EmbeddedResource Include="Icon.ico">
        <LogicalName>Icon.ico</LogicalName>
    </EmbeddedResource>
    <EmbeddedResource Include="Icon.bmp">
        <LogicalName>Icon.bmp</LogicalName>
    </EmbeddedResource>
</ItemGroup>
This should resolve it for you so the correct icon shows in both the taskbar and your game window’s title bar
             
            
              
              
              4 Likes
            
            
                
                
              
           
          
            
            
              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.
Assembly.GetEntryAssembly().GetManifestResourceStream(
  Assembly.GetEntryAssembly().EntryPoint.DeclaringType.Namespace 
  + ".Icon.bmp")