#requires -Version 7.0
param([Parameter(Mandatory)][string]$GameExecutable, [string]$ReportPath)
$ErrorActionPreference = 'Stop'
$taskRoot = [IO.Path]::GetFullPath((Join-Path $PSScriptRoot '..'))
if (-not $ReportPath) { $ReportPath = Join-Path $taskRoot ('artifacts/native-bindings-' + [guid]::NewGuid().ToString('N') + '/report.json') }
$taskExecutable = [IO.Path]::GetFullPath($GameExecutable)
$taskReport = [IO.Path]::GetFullPath($ReportPath)
& dotnet run --project (Join-Path $taskRoot 'Client/Tests/NativeBindingVerification/NativeBindingVerification.csproj') -c Release -- $taskExecutable $taskReport
if ($LASTEXITCODE -ne 0) { throw 'Native binding compatibility verification failed.' }
#requires -Version 7.0
param([Parameter(Mandatory)][string]$GameExecutable, [string]$ReportPath)
$ErrorActionPreference = 'Stop'
$taskRoot = [IO.Path]::GetFullPath((Join-Path $PSScriptRoot '..'))
if (-not $ReportPath) { $ReportPath = Join-Path $taskRoot ('artifacts/native-bindings-' + [guid]::NewGuid().ToString('N') + '/report.json') }
$taskExecutable = [IO.Path]::GetFullPath($GameExecutable)
$taskReport = [IO.Path]::GetFullPath($ReportPath)
& dotnet run --project (Join-Path $taskRoot 'Client/Tests/NativeBindingVerification/NativeBindingVerification.csproj') -c Release -- $taskExecutable $taskReport
if ($LASTEXITCODE -ne 0) { throw 'Native binding compatibility verification failed.' }