nugetUpload: fix version creation

Somehow for the previous commit hash, which had only numbers in its
short version (0122072), nuget failed with:
Run $date = get-date -format "yyyyMMdd-HHmm"
Attempting to build package from 'TgSharp.Core.csproj'.
Error NU5010: Version string specified for package reference '0.1.0-date.20200414-0908.git.0122072' is invalid.
File does not exist (TgSharp.0.1.0-date.20200414-0908.git.0122072.nupkg).

Now we remove the "." after "date" and "git" and use double-dash
to separate initial version from the sub-version.
This commit is contained in:
Andres G. Aragoneses 2020-04-14 17:16:02 +08:00
parent 012207251b
commit b55084d50d

View file

@ -29,7 +29,7 @@ jobs:
}
Else {
$baseVersion = "0.1.0"
$version = "$baseVersion-date.$date.git.$hash"
$version = "$baseVersion--date$date.git$hash"
}
./Nuget.exe pack src/TgSharp.Core/TgSharp.Core.csproj -Version $version -Build -Properties Configuration=Release