[Mono-osx] Setting the Dock icon for a Mono application?

Tim Martin tim at asymptotic.co.uk
Thu Aug 5 15:23:10 EDT 2010


Thanks for the suggestion. I have a .icns file that provides the icon 
for the .app bundle, but pointing the project to use this file as the 
application icon didn't make any difference. In fact, pointing it to a 
non-existent file still gave the same result, so obviously the setting 
I'm changing has nothing to do with it.

The setting I had been altering in the .csproj file was
<Project ...>
<PropertyGroup>
<ApplicationIcon>foobar.ico</ApplicationIcon>

AIUI this is how the task bar icon is set in Windows, but it obviously 
has no effect in Mono / Mac.

I'm left with no idea how I should change the icon. There are no other 
references to .ico or .icns files in the project file. However, I am 
getting a custom icon, just not the correct custom icon, so the setting 
must exist. Has anyone else had success with this before?

Tim

On 05/08/2010 2:59 PM, Mario De Clippeleir wrote:
> Hi,
>
> I think you need to make an .icns file (Apple Icon Image). In that file
> you can include different resolutions.
> Br,
> Mario
> On 5/08/2010 15:47, Tim Martin wrote:
>    
>> whatever I do, the application icon that shows in the dock seems to be
>> at the wrong resolution, and looks horribly re-scaled.
>>
>> The original .Net project file points to a .ico file with the icon at
>> various resolutions from 256x256 down to 16x16. I've subsequently tried
>> pointing it at .ico files at various single resolutions (as high as
>> 600x600) and it always looks exactly the same, i.e. as if it has been
>> scaled up from an icon half the size it needs.
>>      
>



More information about the Mono-osx mailing list