diff --git a/.props/_GlobalStaticVersion.props b/.props/_GlobalStaticVersion.props index 90d44e15a5..55f97cf80e 100644 --- a/.props/_GlobalStaticVersion.props +++ b/.props/_GlobalStaticVersion.props @@ -11,9 +11,9 @@ Update for every public release. --> 2 - 16 + 17 0 - + beta1 nightly - 2020-09-08 + 2020-12-01 - $([MSBuild]::Divide($([System.DateTime]::Now.Subtract($([System.DateTime]::Parse($(SemanticVersionDate)))).TotalMinutes), 5).ToString('F0')) + $([MSBuild]::Divide($([System.DateTime]::Now.Subtract($([System.DateTime]::Parse($(SemanticVersionDate)))).TotalHours), 12)) + $([System.Math]::Floor($(BuildNumberHours)).ToString('F0').PadLeft(5, '0')) $(SemanticVersionMajor).$(SemanticVersionMinor).$(SemanticVersionPatch) $(PreReleaseMilestone) diff --git a/.scripts/release_NupkgAudit.ps1 b/.scripts/release_NupkgAudit.ps1 index 7e87658a1e..3fb53b4dd9 100644 --- a/.scripts/release_NupkgAudit.ps1 +++ b/.scripts/release_NupkgAudit.ps1 @@ -181,7 +181,7 @@ function Get-DoesDllVersionsMatch ([string]$dllPath) { $message = "File Version: '$fileVersion' Assembly Version: '$assemblyVersion"; $requirement = "Versions should match." - Test-Condition ($fileVersion.Equals($assemblyVersion)) $message $requirement; + Test-Condition ([version]$fileVersion -eq [version]$assemblyVersion) $message $requirement; } function Get-IsValidPackageId([xml]$nuspecXml) {