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

Michael Hutchinson m.j.hutchinson at gmail.com
Thu Aug 5 16:31:20 EDT 2010

On Thu, Aug 5, 2010 at 3:23 PM, Tim Martin <tim at asymptotic.co.uk> wrote:
> 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?

The Mac taskbar does not use icons from your exe, no matter how you
embed them. You must use an app bundle, and your Info.plist manifest
must specify your icns. The icns can have multiple resolutions of icon
in it.

Michael Hutchinson

More information about the Mono-osx mailing list