$ErrorActionPreference='Stop' $package=Join-Path $PSScriptRoot '..\bundle\P_Rec_Annot.bundle\PackageContents.xml' [xml]$xml=Get-Content -LiteralPath $package $entry=$xml.ApplicationPackage.Components.ComponentEntry if(@($entry).Count -ne 1){throw 'Bundle must have exactly one entry assembly.'} if($entry.ModuleName -match '_netload|OrthoLoader|Settings.xml'){throw 'Legacy loading chain is forbidden.'} if($entry.ModuleName -notmatch 'PRecAnnot\.Plant3D2026\.dll'){throw 'Unexpected entry assembly.'} Write-Host 'Bundle manifest is structurally valid.'