How can I create a custom Property for my assembly?

后端 未结 3 789
逝去的感伤
逝去的感伤 2020-12-09 12:54

How can I create a custom property for my .Net assembly which would then be visible under the Details tab in Windows explorer?

Something to sit parallel with \"File

3条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-09 13:22

    Your compiler does not support it. AssemblyFileVersionAttribute and all work because the compiler generates a win32 resource in your assembly called VERSIONINFO with that information in it. That is what windows is reading. Other attributes are just saved as metadata along with your code.

    You could make a tool to change the VERSIONINFO resource after you compile.

提交回复
热议问题