| 1 | /* |
|---|
| 2 | * $Id$ |
|---|
| 3 | * Copyright 2008-2010 The Eraser Project |
|---|
| 4 | * Original Author: Joel Low <lowjoel@users.sourceforge.net> |
|---|
| 5 | * Modified By: |
|---|
| 6 | * |
|---|
| 7 | * This file is part of Eraser. |
|---|
| 8 | * |
|---|
| 9 | * Eraser is free software: you can redistribute it and/or modify it under the |
|---|
| 10 | * terms of the GNU General Public License as published by the Free Software |
|---|
| 11 | * Foundation, either version 3 of the License, or (at your option) any later |
|---|
| 12 | * version. |
|---|
| 13 | * |
|---|
| 14 | * Eraser is distributed in the hope that it will be useful, but WITHOUT ANY |
|---|
| 15 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR |
|---|
| 16 | * A PARTICULAR PURPOSE. See the GNU General Public License for more details. |
|---|
| 17 | * |
|---|
| 18 | * A copy of the GNU General Public License can be found at |
|---|
| 19 | * <http://www.gnu.org/licenses/>. |
|---|
| 20 | */ |
|---|
| 21 | using System; |
|---|
| 22 | using System.Reflection; |
|---|
| 23 | using System.Diagnostics; |
|---|
| 24 | |
|---|
| 25 | [assembly: AssemblyFileVersion("6.1.0.$WCREV$")] |
|---|
| 26 | [assembly: AssemblyVersion("6.1.0.2112")] |
|---|
| 27 | |
|---|
| 28 | namespace Eraser { |
|---|
| 29 | internal static class BuildInfo |
|---|
| 30 | { |
|---|
| 31 | public static readonly DateTime BuildDate = DateTime.Parse("$WCNOW$", |
|---|
| 32 | System.Globalization.CultureInfo.InvariantCulture); |
|---|
| 33 | public const bool CustomBuild = $WCMODS?true:false$; |
|---|
| 34 | public static Version AssemblyFileVersion |
|---|
| 35 | { |
|---|
| 36 | get |
|---|
| 37 | { |
|---|
| 38 | FileVersionInfo version = FileVersionInfo.GetVersionInfo( |
|---|
| 39 | Assembly.GetExecutingAssembly().Location); |
|---|
| 40 | |
|---|
| 41 | return new Version(version.FileMajorPart, version.FileMinorPart, |
|---|
| 42 | version.FileBuildPart, version.FilePrivatePart); |
|---|
| 43 | } |
|---|
| 44 | } |
|---|
| 45 | } |
|---|
| 46 | } |
|---|