param([ValidateSet('Debug','Release')][string]$Configuration='Release',[Parameter(Mandatory=$true)][string]$AutoCAD2026ManagedDir,[Parameter(Mandatory=$true)][string]$Plant3D2026ManagedDir) $ErrorActionPreference='Stop' dotnet build (Join-Path $PSScriptRoot '..\PRecAnnot2026.sln') --configuration $Configuration /p:AutoCAD2026ManagedDir=$AutoCAD2026ManagedDir /p:Plant3D2026ManagedDir=$Plant3D2026ManagedDir if($LASTEXITCODE -ne 0){ throw "Build failed: $LASTEXITCODE" } $bundleRoot=Join-Path $PSScriptRoot '..\artifacts\P_Rec_Annot.bundle' $contents=Join-Path $bundleRoot 'Contents\Windows' New-Item -ItemType Directory -Force -Path $contents | Out-Null $output=Join-Path $PSScriptRoot "..\src\PRecAnnot.Plant3D2026\bin\$Configuration\net8.0-windows" Get-ChildItem $output -File -Filter '*.dll' | Copy-Item -Destination $contents -Force Copy-Item (Join-Path $PSScriptRoot '..\bundle\P_Rec_Annot.bundle\PackageContents.xml') $bundleRoot -Force Write-Host 'Bundle assembly build completed; deployment is intentionally not performed.'