--- trunk/VersioningSupport/SharedAssemblyInfo.cs.tmpl 2012/06/02 10:13:25 210 +++ trunk/VersioningSupport/SharedAssemblyInfo.cs.tmpl 2012/06/02 10:33:05 211 @@ -9,19 +9,35 @@ using System.Runtime.InteropServices; // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Revision -// Build -// each has a max size of 6 digits -[assembly: AssemblyVersion("1.$WCNOW=%Y$.$WCNOW=%j$.$WCNOW=%H%M$")] +[assembly: AssemblyVersion(AssemblyConfig.AssemblyVersion)] #if DEBUG && !RELEASE [assembly: AssemblyConfiguration("Debug")] -[assembly: AssemblyFileVersion("1.$WCNOW=%Y$.$WCNOW=%j$.$WCNOW=%H%M$-r$WCREV$" + "-dev" + "-debug")] +[assembly: AssemblyFileVersion(AssemblyConfig.AssemblyFileVersion)] #endif #if RELEASE [assembly: AssemblyConfiguration("Release")] -[assembly: AssemblyFileVersion("1.$WCNOW=%Y$.$WCNOW=%j$.$WCNOW=%H%M$-r$WCREV$" + "-dev" + "-release"] +[assembly: AssemblyFileVersion(AssemblyConfig.AssemblyFileVersion] #endif + +#region BuildConstants +public static class AssemblyConfig +{ + private const string Tag = "dev"; +#if DEBUG && !RELEASE + private const string Config = "debug"; +#endif +#if RELEASE + private const string Config = "release"; +#endif + + private const string SVNRev = "r210"; + + private const string Major = "1"; + private const string Minor = "2012"; + private const string Build = "154"; + private const string Revision = "0624"; + + public const string AssemblyVersion = Major + "." + Minor + "." + Build + "." + Revision; + public const string AssemblyFileVersion = Major + "." + Minor + "." + Build + "." + Revision + "-" + SVNRev + "-" + Tag + "-" + Config; +} +#endregion |