I am working on C# Console App in VS 2008 and am unable to change the icon file.
I changed the icon file in project
-->properties
-->application
tab but still the old icon is displaying with the new build.
Checked the below answer from a post to modify the .resx file. But my app has got only one .cs
file and the .resx file
is empty.
Visual Studio, change app icon, how?
On the menu bar, choose Project > Properties. When the Project Designer appears, choose the Application tab. (Visual Basic)—In the Icon list, choose an icon (. ico) file.
Go to form's properties, ICON ... Choose an icon you want. Edit App. Ico to make it look like you want.
Creating Desktop Applications Using Windows Forms You can change the icon in Visual Studio by opening the properties window for the form. You can then upload a new icon image to the icon field.
When you change the icon, does your project's Properties window look something like this?
Make sure that you recompile (you might need to clean your solution first and then rebuild), and then that you're searching in the correct folder for your newly-built executable. If you're compiling in Debug mode, the default folder is (starting from the root level of your project's folder): \bin\Debug
. If you're compiling in Release mode, it will be in \bin\Release
.
Following the above steps, this works fine for me. My newly-created "ConsoleApplication1" gets a beautiful green book icon:
Make sure that you're looking at the right file! Only your executable (.EXE) is going to receive the custom icon treatment. The file that contains "vshost" in its name is used by Visual Studio, and the other files contain debug information, etc. Additionally, .DLL files cannot show custom icons—Windows uses the same icon for all DLLs and it usually looks something like two gears on a piece of paper.
If you still aren't having any luck, can you update your question with more details about what you're doing, specifically? I can't reproduce the problems you're experiencing otherwise.
I have the same problem. After trying to delete C:\Users\\AppData\Local\IconCache.db the new icon is shown as expected.
You can try it follow steps at: https://superuser.com/a/499083
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With