|
|
@ -1,5 +1,6 @@ |
|
|
#!/bin/bash |
|
|
#!/bin/bash |
|
|
. ./common.sh |
|
|
. ./common.sh |
|
|
|
|
|
set -eE |
|
|
|
|
|
|
|
|
# Rebuild all solutions |
|
|
# Rebuild all solutions |
|
|
for solution in "${solutions[@]}" |
|
|
for solution in "${solutions[@]}" |
|
|
@ -18,12 +19,6 @@ do |
|
|
cd "$projectFolder" |
|
|
cd "$projectFolder" |
|
|
rm -rf "$projectFolder/bin/Release" \ |
|
|
rm -rf "$projectFolder/bin/Release" \ |
|
|
& dotnet pack --no-restore -c Release -p:SourceLinkCreate=true -o "$packFolder" |
|
|
& dotnet pack --no-restore -c Release -p:SourceLinkCreate=true -o "$packFolder" |
|
|
|
|
|
|
|
|
if [ $? -ne 0 ] |
|
|
|
|
|
then |
|
|
|
|
|
echo "Packaging failed for the project: $projectFolder" |
|
|
|
|
|
exit 1 |
|
|
|
|
|
fi |
|
|
|
|
|
done |
|
|
done |
|
|
|
|
|
|
|
|
# Go back to the pack folder |
|
|
# Go back to the pack folder |
|
|
|