VS2008, embedded app icon?

I am using Visual Studio 2008 and I can set the application icon using My Project -> Application - Tab with outline. But is there a way to set the app icon to an embedded resource instead of the file itself? because it seems like VS is re-inserting the icon again for this purpose, instead of reusing the already embedded resource.

+2


source to share


1 answer


The application icon must be a native (Win32) resource in the file .exe

(or .dll

). This is fetched by the wrapper using the native resource APIs.

But the resources that VS injects into the assembly are managed (.NET) resources.



(1. There are several ways to nest a resource in .exe

or .dll

, and you need to use the correct path.)

VS will open native resources for you if you open the assembly file right away .. NET Reflector will show you the managed resources.

+4


source







All Articles