Ever need to the the version of your application? For example showing the version of a executable (a console application, for example). Then you can do that with a single line of code
Assembly.GetExecutingAssembly().GetName().Version
Please note that Version is of the type System.Version that contains properties for the major and minor revisions and others if needed.
No comments:
Post a Comment