Change executable properties (product name) to C #

I have a C # project that I need to change for the product name when compiling. I used the prebuild event to change it in AssemblyInfo.cs, but several times Visual Studio does not receive this change and compiles it with the previous product name. Therefore, I prefer to change it after compilation from another executable file (all in C #).

+3
source share
2 answers

All you have to do is modify the assembly resource file built into the assembly. Here is a step-by-step guide: http://fortheloveofcode.wordpress.com/2007/09/24/change-resources-inside-assembly/ (it’s easy to automate all these steps with a script package)

+2
source

After assembling the assembly, you cannot (or at least should not) change this information. It is compiled into a resource file inside the assembly, which is not intended to be modified.

Visual Studio , . , , Visual Studio , , . , ; , , , - .

0

Source: https://habr.com/ru/post/1733186/


All Articles