<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>+1, and a reference to obscure, now past, historical events.<BR>
 <BR>
/Stefan<BR><BR><BR>

<HR id=stopSpelling>
<BR>
> Date: Sat, 6 Oct 2007 09:24:44 -0400<BR>> From: sean@dague.net<BR>> To: opensim-dev@lists.berlios.de<BR>> Subject: Re: [Opensim-dev] Assembly version<BR>> <BR>> On Sat, Oct 06, 2007 at 03:07:14PM +0200, Tleiades wrote:<BR>> > Hi<BR>> > <BR>> > I have noticed that quite a few of the dynamically loaded assemblies have a <BR>> > version property, and that the version string is hard-coded, making the <BR>> > maintenance of this version information manual, and error prone.<BR>> > <BR>> > Why don't we use the AssemblyVersion property in the assemblyinfo.cs file? <BR>> > and then have subversion maintain and update the information, either on <BR>> > check in or out.<BR>> > <BR>> > The following is a piece of code, which can extract the version information <BR>> > using reflection.<BR>> > <BR>> > public string getVersion()<BR>> > {<BR>> > System.Reflection.Module module = this.GetType().Module;<BR>> > string dllName = module.Assembly.ManifestModule.Name;<BR>> > Version dllVersion = module.Assembly.GetName().Version;<BR>> > <BR>> > return string.Format("{0}.{1}.{2}.{3}", dllVersion.Major, dllVersion.Minor, <BR>> > dllVersion.Build, dllVersion.Revision);<BR>> > }<BR>> > <BR>> > /tleiades <BR>> <BR>> +1 on this idea.<BR>> <BR>> -Sean<BR>> <BR>> -- <BR>> __________________________________________________________________<BR>> <BR>> Sean Dague Mid-Hudson Valley<BR>> sean at dague dot net Linux Users Group<BR>> http://dague.net http://mhvlug.org<BR>> <BR>> There is no silver bullet. Plus, werewolves make better neighbors<BR>> than zombies, and they tend to keep the vampire population down.<BR>> __________________________________________________________________<BR>> _______________________________________________<BR>> Opensim-dev mailing list<BR>> Opensim-dev@lists.berlios.de<BR>> https://lists.berlios.de/mailman/listinfo/opensim-dev<BR><BR></body>
</html>