Skip to content

Commit

Permalink
Improve build.sh speed (#2521)
Browse files Browse the repository at this point in the history
By default build and pack will trigger restore and build respectively.
Considering it was just built and restored, no need to repeat these
steps. Thus adding option to disable this in each step.
  • Loading branch information
Liamdoult committed Mar 12, 2024
1 parent 3f50462 commit 4279d53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ build() {
echo -e "Build ...... "
echo -e "===========================================================\n"

dotnet build WilsonUnix.sln
dotnet build --no-restore WilsonUnix.sln
echo -e "\n"
}

Expand All @@ -30,7 +30,7 @@ pack() {
echo -e "Pack ...... "
echo -e "===========================================================\n"

dotnet pack WilsonUnix.sln
dotnet pack --no-build WilsonUnix.sln

echo -e "\n"
echo -e "==========================================================="
Expand Down

0 comments on commit 4279d53

Please sign in to comment.