Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[Build] Set revision to 0 outside source control

This ensures that properly built packages take precedence to incorrectly
built packages.
  • Loading branch information...
commit a24e1edeae6dd2f71a39b59584ffc29efe874aca 1 parent db913ca
@thefiddler thefiddler authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Source/Build.UpdateVersion/Program.cs
View
2  Source/Build.UpdateVersion/Program.cs
@@ -114,7 +114,7 @@ static void GenerateAssemblyInfo(string major, string minor, string version, str
static string RetrieveRevisionNumber(DateTime now)
{
double timespan = now.Subtract(new DateTime(2010, 1, 1)).TotalDays;
- string revision = RetrieveGitRevision() ?? RetrieveSvnRevision() ?? RetrieveBzrRevision() ?? RetrieveSeconds(timespan);
+ string revision = RetrieveGitRevision() ?? RetrieveSvnRevision() ?? RetrieveBzrRevision() ?? "0";
revision = revision.Trim();
return revision;
}
Please sign in to comment.
Something went wrong with that request. Please try again.