mirror of
https://github.com/SabreTools/SabreTools.Matching.git
synced 2026-02-04 05:36:06 +00:00
27 lines
680 B
PowerShell
27 lines
680 B
PowerShell
# This batch file assumes the following:
|
|
# - .NET 9.0 (or newer) SDK is installed and in PATH
|
|
#
|
|
# If any of these are not satisfied, the operation may fail
|
|
# in an unpredictable way and result in an incomplete output.
|
|
|
|
# Optional parameters
|
|
param(
|
|
[Parameter(Mandatory = $false)]
|
|
[Alias("NoBuild")]
|
|
[switch]$NO_BUILD
|
|
)
|
|
|
|
# Set the current directory as a variable
|
|
$BUILD_FOLDER = $PSScriptRoot
|
|
|
|
# Only build if requested
|
|
if (!$NO_BUILD.IsPresent)
|
|
{
|
|
# Restore Nuget packages for all builds
|
|
Write-Host "Restoring Nuget packages"
|
|
dotnet restore
|
|
|
|
# Create Nuget Package
|
|
dotnet pack SabreTools.Matching\SabreTools.Matching.csproj --output $BUILD_FOLDER
|
|
}
|