From 9816474bc5e7788e08118bad7f5712088811e234 Mon Sep 17 00:00:00 2001 From: Nate McMaster Date: Wed, 18 Jan 2017 12:01:15 -0800 Subject: [PATCH] Move build number logic out of Internal.AspNetCore.Sdk --- build/common.props | 17 +++++++++++++++++ .../targets/BuildNumber.targets | 14 +------------- 2 files changed, 18 insertions(+), 13 deletions(-) diff --git a/build/common.props b/build/common.props index 891f61705..27bfcc296 100644 --- a/build/common.props +++ b/build/common.props @@ -15,4 +15,21 @@ true + + + + + <_SecondBasedTimeStamp>$([System.DateTime]::UtcNow.Subtract($([System.DateTime]::FromBinary(635556672000000000))).TotalSeconds.ToString("F0")) + <_SecondBasedTimeStamp>t$([System.Int64]::Parse($(_SecondBasedTimeStamp)).ToString("x9")) + + + $(_SecondBasedTimeStamp) + $(VersionSuffix)-$(BuildNumber) + $(BuildNumber) + + + \ No newline at end of file diff --git a/src/Internal.AspNetCore.Sdk/targets/BuildNumber.targets b/src/Internal.AspNetCore.Sdk/targets/BuildNumber.targets index c10a4cc00..5d5a8a8fc 100644 --- a/src/Internal.AspNetCore.Sdk/targets/BuildNumber.targets +++ b/src/Internal.AspNetCore.Sdk/targets/BuildNumber.targets @@ -10,19 +10,7 @@ For single-tfm projects, this will be imported from build/Internal.AspNetCore.Sd --> - - - <_SecondBasedTimeStamp>$([System.DateTime]::UtcNow.Subtract($([System.DateTime]::FromBinary(635556672000000000))).TotalSeconds.ToString("F0")) - <_SecondBasedTimeStamp>t$([System.Int64]::Parse($(_SecondBasedTimeStamp)).ToString("x9")) - - - $(_SecondBasedTimeStamp) - $(VersionSuffix)-$(BuildNumber) - $(BuildNumber) - +