Okay, so this is what I did.
I created a console application in C #. I gave him the application icon in the properties sheet of my .csproj. I build. I am running. This is just great. The taskbar icon is just fine. When I press Alt + Tab to switch windows, the icon is also displayed there.
I added a registry entry to HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Run so that the console application starts with Windows. When the same application starts with Windows, it has a standard default console application icon. If I close the application and restart it manually, the correct icon will appear on the taskbar.
What a deal?
C #,. Net 4.5, 64-bit version of Windows 7 Professional
source
share