/[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/09 14:18:27	51
+++ trunk/VersioningSupport/SharedAssemblyInfo.cs.tmpl	2012/06/03 19:15:41	260
@@ -1,16 +1,41 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
+// This file contains common AssemblyVersion data to be shared across all projects in this solution.
+using System.Reflection;
 using System.Runtime.InteropServices;
-
-
-
-[assembly: AssemblyVersion("1.0.$WCREV$.0")]
-#if DEBUG
-[assembly: AssemblyFileVersion("1.0.$WCREV$.0-debug")]
+[assembly: AssemblyCompany("Network Solutions")]
+[assembly: AssemblyCopyright("Copyright © NeoH4x0r 2012")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+// Setting ComVisible to false makes the types in this assembly not visible 
+// 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)]
+[assembly: AssemblyVersion(AssemblyConfig.AssemblyVersion)]
+#if DEBUG && !RELEASE
 [assembly: AssemblyConfiguration("Debug")]
-[assembly: AssemblyDescription("Flavor=Debug")] // a.k.a. "Comments"
-#else
-[assembly: AssemblyFileVersion("1.0.$WCREV$.0-release")]
-[assembly: AssemblyConfiguration("Retail")]
-[assembly: AssemblyDescription("Flavor=Retail")] // a.k.a. "Comments"
+[assembly: AssemblyFileVersion(AssemblyConfig.AssemblyFileVersion)]
+#endif
+#if RELEASE
+[assembly: AssemblyConfiguration("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 Major = "1";
+    private const string Minor = $WCNOW=%#y$ << 9 | $WCNOW=%#m$ << 5 | $WCNOW=%#d$;
+    private const string Build = "$WCNOW=%H%M$";
+    private const string Revision = "$WCREV$";
+	private const string SVNRev = "r" + Revision;
+    public const string AssemblyVersion = Major + "." + Minor + "." + Build + "." + Revision;
+    public const string AssemblyFileVersion = Major + "." + Minor + "." + Build + "." + SVNRev + "-" + Tag + "-" + Config;
+}
+#endregion

 

  ViewVC Help
Powered by ViewVC 1.1.22