From 6699e9e6a6f4fa97bc10db761961113021a237ea Mon Sep 17 00:00:00 2001 From: WonYoung Choi Date: Fri, 21 Jul 2017 06:59:02 +0900 Subject: [PATCH] Revert "Change Version of PackageReference to latest always" This reverts commit 59d0d09ecc85784d37b6f6548eda772f756180c9. --- Tools/dotnet-build.sh | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/Tools/dotnet-build.sh b/Tools/dotnet-build.sh index bd967b4..b9e636f 100755 --- a/Tools/dotnet-build.sh +++ b/Tools/dotnet-build.sh @@ -52,21 +52,6 @@ run_dotnet() { exit_on_error $? } -update_version_to_asterisk() { - local PROJS="" - if [[ $PROJECT_TYPE == "csproj" ]]; then - PROJS=$PROJECT - elif [[ $PROJECT_TYPE == "dir" ]]; then - PROJS=$PROJECT/*.csproj - elif [[ $PROJECT_TYPE == "sln" ]]; then - PROJS=$(find . -name "*.csproj") - fi - for p in $PROJS; do - xmlstarlet ed -L -u "//PackageReference/@Version" --value "*" $p - xmlstarlet ed -L -u "//PackageReference/@version" --value "*" $p - done -} - build_project() { local CSPROJ=$1; shift @@ -80,7 +65,6 @@ build_project() { cmd_restore() { if $USE_DOTNET_CLI; then - update_version_to_asterisk # update PackageReference version to * in .csproj local OPTS="" [ -n "$SOURCE" ] && OPTS="$OPTS -s $SOURCE" run_dotnet restore $PROJECT $OPTS $@ -- 2.7.4