20 lines
669 B
PowerShell
20 lines
669 B
PowerShell
param(
|
|
[string]$SynthRepo = "E:\Projects\AquariumSynthCSharp",
|
|
[string]$Configuration = "Release"
|
|
)
|
|
|
|
$ErrorActionPreference = "Stop"
|
|
|
|
$root = Resolve-Path (Join-Path $PSScriptRoot "..")
|
|
$feed = Join-Path $root "packages"
|
|
$project = Join-Path $SynthRepo "src\AquariumSynth.Dsl\AquariumSynth.Dsl.csproj"
|
|
|
|
if (-not (Test-Path $project)) {
|
|
throw "AquariumSynth.Dsl project not found at $project"
|
|
}
|
|
|
|
New-Item -ItemType Directory -Force -Path $feed | Out-Null
|
|
dotnet pack $project -c $Configuration -o $feed
|
|
|
|
Write-Host "Packed AquariumSynth.Dsl into $feed"
|
|
Write-Host "If the package version changed, update src\Aquarium.Engine\Aquarium.Engine.csproj to match."
|