Todd 0125ac65d9 re-naming Flurl.Http.CodeGen -> Flurl.CodeGen
since it's used in both Flurl and Flurl.Http now
2020-10-24 13:30:12 -05:00

24 lines
755 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
SCRIPT_ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
NETSTANDARD_SLN="${SCRIPT_ROOT}/Flurl.netstandard.sln"
command -v dotnet >/dev/null 2>&1 || {
echo >&2 "This script requires the dotnet core sdk tooling to be installed"
exit 1
}
echo "!!WARNING!! This script only builds netstandard and netcoreapp targets"
echo "!!WARNING!! Do not publish nupkgs generated from this script"
dotnet --info
dotnet restore -v m "${NETSTANDARD_SLN}"
dotnet run -c Release -p "${SCRIPT_ROOT}/../src/Flurl.CodeGen/Flurl.CodeGen.csproj" "${SCRIPT_ROOT}/../src/Flurl.Http/GeneratedExtensions.cs"
dotnet build -c Release "${SCRIPT_ROOT}/../src/Flurl/"
dotnet build -c Release "${SCRIPT_ROOT}/../src/Flurl.Http/"