开发者

VS2008, no embedded application icon?

开发者 https://www.devze.com 2022-12-08 01:44 出处:网络
I\'m using Visual Studio 2008 and I can set the application icon using the My Project -> Application - Tab with a path. But, is there any way to set the application icon to an embedded resource instea

I'm using Visual Studio 2008 and I can set the application icon using the My Project -> Application - Tab with a path. But, is there any way to set the application icon to an embedded resource instead of the 开发者_如何学编程file itself? 'cause it seems like that VS is embedding the icon again just for this purpose, instead of reusing an already embedded resource.


The application icon needs to be a native (Win32) resource in the .exe (or .dll) file. This is extracted by the shell using the native resource APIs.

But the resources that VS embeds in an assembly are managed (.NET) resources.

(I.e. there are multiple ways of embedding a resource in a .exe or .dll and you need to use the right way.)

VS will show you the native resources if you open the assembly file directly. .NET Reflector will show you the managed resources.

0

精彩评论

暂无评论...
验证码 换一张
取 消