sdk icon indicating copy to clipboard operation
sdk copied to clipboard

Be able to set an icon to standalone applications

Open Yves57 opened this issue 10 years ago • 11 comments

When building a standalone application, it would be nice to be able to set an icon (the Roslyn /win32iconoption in fact).

Yves57 avatar May 27 '16 13:05 Yves57

@schellap @gkhanna79 @blackdwarf this would have to be added to dotnet.exe after renaming. Thoughts?

TheRealPiotrP avatar May 27 '16 20:05 TheRealPiotrP

It sounds like we are going to need two exes

  1. The muxer exe that carries dotnet branding.
  2. The corehost exe that carries no branding and CLI would post process this for the developer.

For 2, potentially CLI can ask roslyn package expose this capability or CLI carries or depends on rc.exe to bake this into the published corehost exe.

I am not sure if we can overwrite the dotnet branding using mt.exe. If we can then we dont need 2 exes.

schellap avatar May 27 '16 20:05 schellap

If this feature will not be in the RTM, is there a post build workaround that can be used to inject an icon into the executable?

easyt avatar Jun 14 '16 12:06 easyt

Anything that can be done here?

ayende avatar Aug 14 '17 06:08 ayende

Bump, it'd be really nice if there was an option to do this without resorting to hacks and adding resources in post-compilation steps.

JustArchi avatar Sep 27 '17 00:09 JustArchi

Are there any intentions to fix this (and related issues) within the next couple of years or it'd be smarter to just find lasting workarounds?

nopara73 avatar Sep 17 '18 11:09 nopara73

We are looking into this for applications targeting windows in the 3.0 time frame. I have updated the milestone for this issue.

livarcocc avatar Sep 17 '18 17:09 livarcocc

cc @jeffschwMSFT

livarcocc avatar Sep 17 '18 17:09 livarcocc

There is a corresponding issue here https://github.com/dotnet/core-setup/issues/4193. The work is underway - right now it is scoped to windows only (both from where it is built and what is being built).

jeffschwMSFT avatar Sep 17 '18 19:09 jeffschwMSFT

This is being fixed here: https://github.com/dotnet/sdk/pull/2545.

livarcocc avatar Sep 22 '18 04:09 livarcocc

How does one make use of this, now that it is in?

vadi2 avatar May 12 '21 16:05 vadi2