From 7cc3afbd9ba2dc6c0ba75bd6ee97b8c7fd57d52f Mon Sep 17 00:00:00 2001 From: JustMe Date: Mon, 5 Oct 2026 17:37:50 +0000 Subject: [PATCH] fix(build): use native NativeAOT SDK in Linux fast lane Only use the StuDev AotAnywhere SDK when explicitly enabled by Windows cross-platform builds. Co-authored-by: JustMe --- backend/agent/src/Monitor.Agent/Monitor.Agent.csproj | 4 ++-- backend/fleet/tools/fleet-enroll/fleet-enroll.csproj | 4 ++-- backend/probe/src/Monitor.Probe/Monitor.Probe.csproj | 4 ++-- ci/release-cross-platform.ps1 | 1 + 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/backend/agent/src/Monitor.Agent/Monitor.Agent.csproj b/backend/agent/src/Monitor.Agent/Monitor.Agent.csproj index 86652a2..081f0c7 100644 --- a/backend/agent/src/Monitor.Agent/Monitor.Agent.csproj +++ b/backend/agent/src/Monitor.Agent/Monitor.Agent.csproj @@ -1,7 +1,7 @@ + Condition="'$(UseAotAnywhere)' == 'true'" /> Exe monitor-agent @@ -16,5 +16,5 @@ + Condition="'$(UseAotAnywhere)' == 'true'" /> diff --git a/backend/fleet/tools/fleet-enroll/fleet-enroll.csproj b/backend/fleet/tools/fleet-enroll/fleet-enroll.csproj index 08e149e..e654abe 100644 --- a/backend/fleet/tools/fleet-enroll/fleet-enroll.csproj +++ b/backend/fleet/tools/fleet-enroll/fleet-enroll.csproj @@ -1,7 +1,7 @@ + Condition="'$(UseAotAnywhere)' == 'true'" /> Exe fleet-enroll @@ -13,5 +13,5 @@ + Condition="'$(UseAotAnywhere)' == 'true'" /> diff --git a/backend/probe/src/Monitor.Probe/Monitor.Probe.csproj b/backend/probe/src/Monitor.Probe/Monitor.Probe.csproj index 22b9da3..122cc53 100644 --- a/backend/probe/src/Monitor.Probe/Monitor.Probe.csproj +++ b/backend/probe/src/Monitor.Probe/Monitor.Probe.csproj @@ -1,7 +1,7 @@ + Condition="'$(UseAotAnywhere)' == 'true'" /> Exe monitor-probe @@ -16,5 +16,5 @@ + Condition="'$(UseAotAnywhere)' == 'true'" /> diff --git a/ci/release-cross-platform.ps1 b/ci/release-cross-platform.ps1 index f45f67c..22e5c02 100644 --- a/ci/release-cross-platform.ps1 +++ b/ci/release-cross-platform.ps1 @@ -59,6 +59,7 @@ try { -r $RuntimeIdentifier ` --self-contained true ` -p:PublishAot=true ` + -p:UseAotAnywhere=true ` -p:StripSymbols=true ` -p:DebugType=none ` -p:DebugSymbols=false `