mardi 6 mai 2014

c# - informations de l'assembly Clone - Stack Overflow


Currently I am using ResHacker to read and set assembly information. I am using my C# application to run ResHacker with proper command line arguments necessary for reading and setting the Assembly information. However, I would like to do this without a third party application.


I want to control the following:


File description:
Company Name:
File Version:
Date Created:



It seems that you need to edit the VERSIONINFO resouce. To manipulate resources, you can use the resource functions:



  • FindResource

  • LoadResource

  • BeginUpdateResource

  • UpdateResource

  • EndUpdateResource.


See here for sample code (Win32 but shouldn't be too hard to convert to P/Invoke). The structure of the VERSIONINFO record itself is somewhat complicated and contains variable-length and nested records. Have a look at this description.



Currently I am using ResHacker to read and set assembly information. I am using my C# application to run ResHacker with proper command line arguments necessary for reading and setting the Assembly information. However, I would like to do this without a third party application.


I want to control the following:


File description:
Company Name:
File Version:
Date Created:


It seems that you need to edit the VERSIONINFO resouce. To manipulate resources, you can use the resource functions:



  • FindResource

  • LoadResource

  • BeginUpdateResource

  • UpdateResource

  • EndUpdateResource.


See here for sample code (Win32 but shouldn't be too hard to convert to P/Invoke). The structure of the VERSIONINFO record itself is somewhat complicated and contains variable-length and nested records. Have a look at this description.


Related Posts:

0 commentaires:

Enregistrer un commentaire