Use VersionPrefix

This commit is contained in:
David
2020-08-13 19:03:24 +02:00
parent f92efc7f9b
commit b92fbe4d69
6 changed files with 7 additions and 7 deletions

View File

@@ -58,9 +58,9 @@ do
echo ${f}
# Parse the version from the *.csproj file
old_version="$(
grep "PackageVersion" ${f} \
grep "VersionPrefix" ${f} \
| awk '{$1=$1};1' \
| sed -E 's/<PackageVersion>([0-9\.]+[-a-z0-9]*)<\/PackageVersion>/\1/'
| sed -E 's/<VersionPrefix>([0-9\.]+[-a-z0-9]*)<\/VersionPrefix>/\1/'
)"
echo old nuget version: $old_version