Improve build so that you can't forget to set the version number, the version in

UmbracoVersion.cs will be updated with the version configured in build.bat
This commit is contained in:
Sebastiaan Janssen
2013-01-14 12:16:55 -01:00
parent 98a171266e
commit fa862e9a33
9 changed files with 11084 additions and 753 deletions

View File

@@ -1,11 +1,11 @@
using System;
using System;
using System.Reflection;
namespace Umbraco.Core.Configuration
{
public class UmbracoVersion
{
private static readonly Version Version = new Version(6, 0, 0);
private static readonly Version Version = new Version("6.0.0");
/// <summary>
/// Gets the current version of Umbraco.
@@ -23,7 +23,7 @@ namespace Umbraco.Core.Configuration
/// Gets the version comment (like beta or RC).
/// </summary>
/// <value>The version comment.</value>
public static string CurrentComment { get { return "Beta"; } }
public static string CurrentComment { get { return "beta"; } }
// Get the version of the umbraco.dll by looking at a class in that dll
// Had to do it like this due to medium trust issues, see: http://haacked.com/archive/2010/11/04/assembly-location-and-medium-trust.aspx