#!/usr/bin/env bash # pack.sh — produce the ZB.MOM.WW.Auth NuGet packages into ./artifacts. # # Usage: # ./build/pack.sh set -euo pipefail # cd to the repo root and name the solution + an absolute output path: `dotnet pack` with # neither a project argument nor a fixed working directory packs whatever solution happens # to sit in the CALLER's directory (the bug behind the LocalDb feed incident, 0038d46). REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" cd "$REPO_ROOT" dotnet pack ZB.MOM.WW.Auth.slnx -c Release -o "$REPO_ROOT/artifacts"