[Mono-devel-list] [PATCH] Added Mono.Runtime.GetVersion()
michal.moskal at gmail.com
Sat Jun 4 16:41:05 EDT 2005
On 6/4/05, Kornél Pál <kornelpal at hotmail.com> wrote:
> > From: Ben Maurer
> > (the reason here is that I need to be able to make a svn snapshot and
> > easily change it so that there is a revision number based version at the
> > end. However, I can't know if the "real version" is 1.1.7 or 126.96.36.199.
> > Also, this totally restricts the version format to having 4 parts).
> I think having some restrictions on the format of version number is required
> if we want to use the version numbers for any purpose.
> The version of course can be parsed from a string at runtime it has little
> performance loss as long as the version number is in a form that can be used
> in the constructor of System.Version.
You said the main purpose of this method is for inclusion in bug
reports. So why you don't just make it return string? So it would also
work for snapshot versions (like 188.8.131.52.20050604).
More information about the Mono-devel-list