From: WonYoung Choi Date: Thu, 24 Aug 2017 07:13:48 +0000 (+0900) Subject: Fix build.sh to fix gbs build error if network is unavailable X-Git-Tag: preview1-00151~45^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0d28405f3fdadcc5201b6519c403251a342d32b5;hp=b42eb5acc34e42e532ead932e73317165bad7480;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git Fix build.sh to fix gbs build error if network is unavailable Change-Id: Ib16b3abfab8d9a77bb2080f9699dcf18d0c8e229 --- diff --git a/build.sh b/build.sh index a31b94f..1f8c790 100755 --- a/build.sh +++ b/build.sh @@ -31,11 +31,13 @@ cmd_build() { echo "No module specified." exit 1 fi - dotnet build $SCRIPT_DIR/src/$1 --configuration=Release --output=$OUTDIR/bin + dotnet restore $SCRIPT_DIR/src/$1 --source /nuget + dotnet build $SCRIPT_DIR/src/$1 --no-restore --configuration=Release --output=$OUTDIR/bin } cmd_full_build() { - dotnet build $SCRIPT_DIR/pkg/Tizen.NET.Private.sln --configuration=Release --output=$OUTDIR/bin + dotnet restore $SCRIPT_DIR/pkg/Tizen.NET.Private.sln --source /nuget + dotnet build $SCRIPT_DIR/pkg/Tizen.NET.Private.sln --no-restore --configuration=Release --output=$OUTDIR/bin } cmd_pack() { @@ -50,7 +52,8 @@ cmd_pack() { } cmd_dummy_build() { - dotnet build $SCRIPT_DIR/pkg/Tizen.NET.Dummy.csproj --configuration=Release + dotnet restore $SCRIPT_DIR/pkg/Tizen.NET.Dummy.csproj --source /nuget + dotnet build $SCRIPT_DIR/pkg/Tizen.NET.Dummy.csproj --no-restore --configuration=Release } OPTS=`getopt -o hcbfpd --long help,clean,build,full,pack,dummy -n 'build' -- "$@"`