38 lines
914 B
Bash
38 lines
914 B
Bash
#!/bin/bash
|
|
CONFIGURATION=Release
|
|
|
|
cd "$(dirname "${0}")"
|
|
rm -rf artifacts
|
|
mkdir artifacts
|
|
|
|
dotnet restore -v q
|
|
# dotnet tool restore -v q
|
|
|
|
pushd AMWD.Common
|
|
rm -rf bin
|
|
dotnet build -c ${CONFIGURATION} --nologo --no-incremental
|
|
mv bin/${CONFIGURATION}/*.nupkg ../artifacts
|
|
mv bin/${CONFIGURATION}/*.snupkg ../artifacts
|
|
popd
|
|
|
|
pushd AMWD.Common.AspNetCore
|
|
rm -rf bin
|
|
dotnet build -c ${CONFIGURATION} --nologo --no-incremental
|
|
mv bin/${CONFIGURATION}/*.nupkg ../artifacts
|
|
mv bin/${CONFIGURATION}/*.snupkg ../artifacts
|
|
popd
|
|
|
|
pushd AMWD.Common.EntityFrameworkCore
|
|
rm -rf bin
|
|
dotnet build -c ${CONFIGURATION} --nologo --no-incremental
|
|
mv bin/${CONFIGURATION}/*.nupkg ../artifacts
|
|
mv bin/${CONFIGURATION}/*.snupkg ../artifacts
|
|
popd
|
|
|
|
pushd AMWD.Common.Moq
|
|
rm -rf bin
|
|
dotnet build -c ${CONFIGURATION} --nologo --no-incremental
|
|
mv bin/${CONFIGURATION}/*.nupkg ../artifacts
|
|
mv bin/${CONFIGURATION}/*.snupkg ../artifacts
|
|
popd
|