/win32icon (Import an .ico File) (C# Compiler Options)
Visual Studio 2005
The /win32icon option inserts an .ico file in the output file, which gives the output file the desired appearance in the Windows Explorer.
/win32icon:filename
An .ico file can be created with the Resource Compiler. The Resource Compiler is invoked when you compile a Visual C++ program; an .ico file is created from the .rc file.
See /linkresource (to reference) or /resource (to attach) a .NET Framework resource file. See /win32res to import a .res file.
To set this compiler option in the Visual Studio development environment
-
Open the project's Properties pages. For details, see How to: Set Project Properties (C#, J#).
-
Click the Application property page.
-
Modify the Application icon property.
For information on how to set this compiler option programmatically, see ApplicationIcon.