Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Assembly version in .NET excutable
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00941649
Message ID:
00948829
Views:
15
Try the Version member of the System.Reflection.AssemblyName class.

BOb


>Thanks Bob. How do I retrieve this information? I want the version info to be displayed in the "About" screen.
>
>>
>
>>A version compiled last week has "1.0.1711.33552" as the assembly and file version
>>>
>>>How is this 'calculated' by .NET.
>>
>>>Thanks, Al
>>
>>The below is from the AssemblyVersionAttribute Constructor topic:
>>
>>----
>>
>>The format of the version string is: major. minor. build. revision.
>>
>>When specifying a version, you have to at least specify major. If you specify major and minor, you can specify an asterisk (*) for build. This will cause build to be equal to the number of days since January 1, 2000 local time, and for revision to be equal to the number of seconds since midnight local time, divided by 2.
>>
>>If you specify major, minor, and build, you can specify an asterisk for revision. This will cause revision to be equal to the number of seconds since midnight local time, divided by 2.
>>
>>Examples of valid version strings include:
>>
>>1
>>
>>1.1
>>
>>1.1.*
>>
>>1.1.1
>>
>>1.1.1.*
>>
>>1.1.1.1
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform