Hello! And do not tell me how to display the version of the current assembly inside the program. I just need to display it in a text file after launching the program, but I haven’t found anything anywhere on Google.
Thanks a lot in advance!
Try
Assembly.GetExecutingAssembly().GetName().Version Or
Assembly.LoadFile('имя_сборки').GetName().Version Read more about Assembly here.
LoadFile does not seem to me a good idea: why load an already loaded assembly, and bypassing the cache? - VladDYou can get the current build version as follows:
Assembly.GetExecutingAssembly().GetName().Version The Version property is of type System.Version .
Source: https://ru.stackoverflow.com/questions/522320/
All Articles