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 #).
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)
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 , , . , ; , , , - .
Source: https://habr.com/ru/post/1733186/More articles:Any way to “save state” in a C # game? - c #Animated WPF Grid / WrapPanel - animationHow to embed Google Wave using Google Web Toolkit - javaUsing relative url for window.location in child iframe - javascriptXPath "after siblings before" - xpathHow to extract current url and id in jQuery? - javascriptPython import with various directory structures - pythonReverse geocoding using J2ME - javaIs it necessary that what happens first in the source will be displayed first, always? - javascriptUpgrade violation - sqlAll Articles