Currently I am using ResHacker to read and set assembly information. I am using my C# application to run ResHacker with p开发者_JAVA百科roper 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.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论