param( [string]$HostOutputDirectory ) $ErrorActionPreference = "Stop" $root = Split-Path -Parent $MyInvocation.MyCommand.Path $project = Join-Path $root "src\Pcie8586.Driver\Pcie8586.Driver.csproj" $example = Join-Path $root "examples\ConsoleIntegration\ConsoleIntegration.csproj" $artifacts = Join-Path $env:TEMP "Pcie8586DriverIntegrationVerify" dotnet build $project -c Release -p:Platform=x64 --artifacts-path $artifacts if ($LASTEXITCODE -ne 0) { throw "Driver library build failed." } dotnet build $example -c Release -p:Platform=x64 --artifacts-path $artifacts if ($LASTEXITCODE -ne 0) { throw "Console integration example build failed." } if ($HostOutputDirectory) { $dll = Join-Path $HostOutputDirectory "ACTS1000_64.dll" if (-not (Test-Path -LiteralPath $dll)) { Write-Warning "ACTS1000_64.dll was not found in host output: $HostOutputDirectory" } else { Write-Host "Found native runtime: $dll" } } Write-Host "Driver integration package verification succeeded."