diff --git a/dotnet/build.sh b/dotnet/build.sh old mode 100644 new mode 100755 index 8b7a77cf025e..fa86913447ed --- a/dotnet/build.sh +++ b/dotnet/build.sh @@ -2,12 +2,12 @@ set -e -HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/" -cd "$HERE" +SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) -cd dotnet +pushd "$SCRIPT_DIR" > /dev/null # Release config triggers also "dotnet format" dotnet build --configuration Release --interactive - dotnet test --configuration Release --no-build --no-restore --interactive + +popd > /dev/null \ No newline at end of file