Pin synth DSL as local package
This commit is contained in:
parent
3f24e28df8
commit
c556c8beb7
10 changed files with 48 additions and 20 deletions
20
scripts/update-synth-package.ps1
Normal file
20
scripts/update-synth-package.ps1
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
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."
|
||||
Loading…
Reference in a new issue