From 05eb22b2242622625ea131636c696d8f19c7e90f Mon Sep 17 00:00:00 2001 From: martincostello Date: Wed, 31 Jan 2024 17:35:29 +0000 Subject: [PATCH] Address feedback - Remove explicit `--runtime` flag. - Cater for macOS explicitly. --- build/test-aot-compatibility.ps1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build/test-aot-compatibility.ps1 b/build/test-aot-compatibility.ps1 index 1f9db2c27a..5abe054bec 100644 --- a/build/test-aot-compatibility.ps1 +++ b/build/test-aot-compatibility.ps1 @@ -1,10 +1,7 @@ param([string]$targetNetFramework) -$runtime = $IsWindows ? "win-x64" : "linux-x64" -$app = $IsWindows ? "./OpenTelemetry.AotCompatibility.TestApp.exe" : "./OpenTelemetry.AotCompatibility.TestApp" - $rootDirectory = Split-Path $PSScriptRoot -Parent -$publishOutput = dotnet publish $rootDirectory/test/OpenTelemetry.AotCompatibility.TestApp/OpenTelemetry.AotCompatibility.TestApp.csproj --runtime $runtime -nodeReuse:false /p:UseSharedCompilation=false +$publishOutput = dotnet publish $rootDirectory/test/OpenTelemetry.AotCompatibility.TestApp/OpenTelemetry.AotCompatibility.TestApp.csproj -nodeReuse:false /p:UseSharedCompilation=false $actualWarningCount = 0 @@ -26,6 +23,9 @@ if ($LastExitCode -ne 0) Write-Host $publishOutput } +$runtime = $IsWindows ? "win-x64" : ($IsMacOS ? "macos-x64" : "linux-x64") +$app = $IsWindows ? "./OpenTelemetry.AotCompatibility.TestApp.exe" : "./OpenTelemetry.AotCompatibility.TestApp" + Push-Location $rootDirectory/test/OpenTelemetry.AotCompatibility.TestApp/bin/Release/$targetNetFramework/$runtime Write-Host "Executing test App..."