How to perform “shell” icon embedding in Visual Studio 2010?

前端 未结 2 476
离开以前
离开以前 2020-12-04 00:51

As far as I can tell, there have been (at least?) three types of icon embedding. There\'s the original style used by shell32.dll and friends, .NET\'s embedding, and the new

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-04 01:05

    I'd highly recommend taking a look at this solution posted here (http://einaregilsson.com/add-multiple-icons-to-a-dotnet-application/). It integrates right into a ms build post build event and doesn't require an unmanaged project (to create an assembly from a .rc/.res file).

    This removes a dependency on managing a second solution / assembly anytime you want update an icon and saves you from IL Merging the compiled c++ assembly.

    I'd also recommend taking a look at WIX for your deployment. I've written a guide that accompanies this answer located here.

提交回复
热议问题