Adding an icon to the windows console application
Is there any way to add an icon 开发者_C百科to a windows console application (that will be displayed in folders and in the task bar)?
Go to Project Properties and select an icon.
I realize that the OP spec'd C#, but I came here looking for the same answer for C+, so I thought I'd post that answer.
To set an app icon for a C++ console app, you add a .RC file to the project, then add an .ico to the .rc, then recompile. The .ico will automatically become the app's icon.
精彩评论