From 6341937c7c53e0033b83e008bda56956ed226c8c Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 6 Mar 2020 22:05:50 -0500 Subject: [PATCH] local build scripts --- src/Api/build.ps1 | 12 ++++++++++++ src/Identity/build.ps1 | 12 ++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 src/Api/build.ps1 create mode 100644 src/Identity/build.ps1 diff --git a/src/Api/build.ps1 b/src/Api/build.ps1 new file mode 100644 index 0000000000..94e52fc7ee --- /dev/null +++ b/src/Api/build.ps1 @@ -0,0 +1,12 @@ +$dir = Split-Path -Parent $MyInvocation.MyCommand.Path + +echo "`n## Building API" + +echo "`nBuilding app" +echo ".NET Core version $(dotnet --version)" +echo "Restore" +dotnet restore $dir\Api.csproj +echo "Clean" +dotnet clean $dir\Api.csproj -c "Release" -o $dir\obj\Azure\publish +echo "Publish" +dotnet publish $dir\Api.csproj -c "Release" -o $dir\obj\Azure\publish diff --git a/src/Identity/build.ps1 b/src/Identity/build.ps1 new file mode 100644 index 0000000000..eca6ba13aa --- /dev/null +++ b/src/Identity/build.ps1 @@ -0,0 +1,12 @@ +$dir = Split-Path -Parent $MyInvocation.MyCommand.Path + +echo "`n## Building Identity" + +echo "`nBuilding app" +echo ".NET Core version $(dotnet --version)" +echo "Restore" +dotnet restore $dir\Identity.csproj +echo "Clean" +dotnet clean $dir\Identity.csproj -c "Release" -o $dir\obj\Azure\publish +echo "Publish" +dotnet publish $dir\Identity.csproj -c "Release" -o $dir\obj\Azure\publish