/[RomCheater]/trunk/VersioningSupport/SharedAssemblyInfo.cs.tmpl
ViewVC logotype

Diff of /trunk/VersioningSupport/SharedAssemblyInfo.cs.tmpl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/VersioningSupport/SharedAssemblyInfo.cs.tmpl	2012/05/28 10:35:07	193
+++ trunk/VersioningSupport/SharedAssemblyInfo.cs.tmpl	2012/06/03 17:34:52	259
@@ -9,20 +9,35 @@
 // 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
-[assembly: AssemblyVersion("1.0.1.$WCREV$")] 
-//[assembly: AssemblyFileVersion("1.0.0.$WCREV$")]
+[assembly: AssemblyVersion(AssemblyConfig.AssemblyVersion)]
 #if DEBUG && !RELEASE
 [assembly: AssemblyConfiguration("Debug")]
-[assembly: AssemblyFileVersion("1.0.0.$WCREV$-debug")]
+[assembly: AssemblyFileVersion(AssemblyConfig.AssemblyFileVersion)]
 #endif
 #if RELEASE
 [assembly: AssemblyConfiguration("Release")]
-[assembly: AssemblyFileVersion("1.0.0.$WCREV$-release")]
+[assembly: AssemblyFileVersion(AssemblyConfig.AssemblyFileVersion)]
 #endif
-//[assembly: ProcessorAssemblyArchitecture(ProcessorAssemblyArchitecture.x86)]
+
+#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 = "r$WCREV$";
+
+    private const string Major = "1";
+    private const string Minor = "$WCNOW=%Y$";
+    private const string Build = "$WCNOW=%j$";
+    private const string Revision = "$WCNOW=%H%M$";
+
+    public const string AssemblyVersion = Major + "." + Minor + "." + Build + "." + Revision;
+    public const string AssemblyFileVersion = Major + "." + Minor + "." + Build + "." + Revision + "-" + SVNRev + "-" + Tag + "-" + Config;
+}
+#endregion

 

  ViewVC Help
Powered by ViewVC 1.1.22