I have a console application written using Visual Studio 2010 / C#.
I added an icon through Properties -> Application Tab -> Icon and manifest.
The first time I changed the icon from the default icon it worked displaying the new icon for the .exe file. However, when I deleted the first.ico file and went back into Properties -> Application Tab -> Icon and manifest and changed the icon to a different .ico file when I build the .exe it still keeps the old icon I originally set it to. Also if I delete the new .ico file from the project on build the .exe gets the default icon.
I have no idea how the project still knows about the first .ico file.
Any ideas?
I have a console application written using Visual Studio 2010 / C#. I added
Share
I tried clearing the windows thumbnail cache but that did not work.
http://www.addictivetips.com/windows-tips/clear-delete-the-thumbnail-cache-in-windows-7/
I then tried rebuilding the windows icon cache which fixed the problem.
http://www.sevenforums.com/tutorials/49819-icon-cache-rebuild.html
Open command prompt as an administrator and enter the following commands:
taskkill /IM explorer.exe /F
CD /d %userprofile%\AppData\Local
DEL IconCache.db /a
shutdown /r /f /t 00
This will restart your machine.