Port to .NETStandard 2.0

This commit is contained in:
Alexander Merkulov 2020-01-08 15:05:58 +03:00
parent 3c6f53be68
commit 0d329157e5
27 changed files with 222 additions and 1212 deletions

20
scripts/bump.sh Executable file
View file

@ -0,0 +1,20 @@
#!/usr/bin/env bash
VERSION=`cat ./VERSION`
TAG=`echo "$VERSION" | awk -F. -v OFS=. 'NF==1{print ++$NF}; NF>1{if(length($NF+1)>length($NF))$(NF-1)++; $NF=sprintf("%0*d", length($NF), ($NF+1)%(10^length($NF))); print}'`
# git -c core.quotepath=false checkout -b "release/$TAG"
echo "$TAG" > ./VERSION
# git -c core.quotepath=false add --ignore-errors ./VERSION
# git -c core.quotepath=false commit -am "$TAG"
# git checkout develop
# git merge --no-ff --no-edit "release/$TAG"
# git checkout master
# git merge --no-ff --no-edit "release/$TAG"
# git tag $TAG
# git push origin master develop
# git push --tags origin
# git checkout develop
# git branch -d "release/$TAG"
exit 0

7
scripts/pack.sh Executable file
View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
export VERSION=`cat ./VERSION`
cd "TLSharp.Core"
dotnet pack -c Release

7
scripts/publish.sh Executable file
View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
set -e
cd ./TLSharp.Core; dotnet nuget push -k ${NUGET_KEY} -s ${NUGET_SERVER} $(ls -dt bin/Release/* | head -1)
exit 0