fix version specification because nuget only likes dashes. (#11060)
This commit is contained in:
parent
d2c72e5c25
commit
6f42367ab8
|
@ -1,6 +1,6 @@
|
|||
function MakeVersion ( $major, $minor, $datetimeStamp )
|
||||
{
|
||||
$revision, $branch = $datetimeStamp.Split("-")
|
||||
$revision, $branch = $datetimeStamp.Split("-", 2)
|
||||
|
||||
if ( $branch -eq $null )
|
||||
{
|
||||
|
@ -71,5 +71,5 @@ function GetDatetimeStamp ( $pgoBranch )
|
|||
throw "FAILED: Get forkDate"
|
||||
}
|
||||
|
||||
return $forkDate + "-" + $pgoBranch.Replace("/", "_").Replace("-", "_").Replace(".", "_")
|
||||
return $forkDate + "-" + ( $pgoBranch -replace "(/|\.|@|>|<)", "-" )
|
||||
}
|
Loading…
Reference in New Issue