Assembly Version - Odds and Ends
Using assembly version is a wonderful way for someone to help maintain and support their applications. It is defined in the AssemblyInfo.cs file through an attribute. You can manually update it or have a auto incrementing process to control your assembly version. It is a good idea to display it on an 'About Dialog' so users can report it when they suggest new features or find bugs.
From a console application the version number can be retrieved by:
And from an application that loads the System.Windows.Forms library it can by retrieved by:
Both of these calls will take about 10ms to run the first time, but the results will be cached for future calls.
If you don't define an assembly version the first method will return 0.0.0.0 and the 2nd method will return 1.0.0.0.
- Anonymous
September 01, 2008
PingBack from http://www.modhul.com/2008/09/01/biztalk-assembly-redirection/