ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/RomCheater/trunk/VersioningSupport/SharedAssemblyInfo.cs.tmpl
(Generate patch)

Comparing trunk/VersioningSupport/SharedAssemblyInfo.cs.tmpl (file contents):
Revision 210 by william, Sat Jun 2 10:13:25 2012 UTC vs.
Revision 211 by william, Sat Jun 2 10:33:05 2012 UTC

# Line 9 | Line 9 | using System.Runtime.InteropServices;
9   // to COM components.  If you need to access a type in this assembly from
10   // COM, set the ComVisible attribute to true on that type.
11   [assembly: ComVisible(false)]
12 < // Version information for an assembly consists of the following four values:
13 < //
14 < //      Major Version
15 < //      Minor Version
16 < //      Revision
17 < //      Build
18 < // each has a max size of 6 digits
19 < [assembly: AssemblyVersion("1.$WCNOW=%Y$.$WCNOW=%j$.$WCNOW=%H%M$")]
12 > [assembly: AssemblyVersion(AssemblyConfig.AssemblyVersion)]
13   #if DEBUG && !RELEASE
14   [assembly: AssemblyConfiguration("Debug")]
15 < [assembly: AssemblyFileVersion("1.$WCNOW=%Y$.$WCNOW=%j$.$WCNOW=%H%M$-r$WCREV$" + "-dev" + "-debug")]
15 > [assembly: AssemblyFileVersion(AssemblyConfig.AssemblyFileVersion)]
16   #endif
17   #if RELEASE
18   [assembly: AssemblyConfiguration("Release")]
19 < [assembly: AssemblyFileVersion("1.$WCNOW=%Y$.$WCNOW=%j$.$WCNOW=%H%M$-r$WCREV$" + "-dev" + "-release"]
19 > [assembly: AssemblyFileVersion(AssemblyConfig.AssemblyFileVersion]
20   #endif
21 +
22 + #region BuildConstants
23 + public static class AssemblyConfig
24 + {
25 +    private const string Tag = "dev";
26 + #if DEBUG && !RELEASE
27 +    private const string Config = "debug";
28 + #endif
29 + #if RELEASE
30 +    private const string Config = "release";
31 + #endif
32 +
33 +    private const string SVNRev = "r210";
34 +
35 +    private const string Major = "1";
36 +    private const string Minor = "2012";
37 +    private const string Build = "154";
38 +    private const string Revision = "0624";
39 +
40 +    public const string AssemblyVersion = Major + "." + Minor + "." + Build + "." + Revision;
41 +    public const string AssemblyFileVersion = Major + "." + Minor + "." + Build + "." + Revision + "-" + SVNRev + "-" + Tag + "-" + Config;
42 + }
43 + #endregion

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines