From 8e15d9f523209caf08db57897777b7beb0516c99 Mon Sep 17 00:00:00 2001 From: Andy Gocke Date: Wed, 14 Dec 2022 04:01:27 -0800 Subject: [PATCH] Change RunningPublish property name to _IsPublishing (#79483) The crossgen publish capability currently uses a RunningPublish property to signal that certain settings should be enabled. The SDK now provides a property that serves the same purpose called '_IsPublishing'. By using the SDK property, the right publish behavior will automatically happen if a user runs 'dotnet publish' on the crossgen2 project. --- src/coreclr/tools/aot/crossgen2/crossgen2.csproj | 8 ++++---- .../Microsoft.NETCore.App.Crossgen2.sfxproj | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/coreclr/tools/aot/crossgen2/crossgen2.csproj b/src/coreclr/tools/aot/crossgen2/crossgen2.csproj index 9ce085ee29832..95be34cda27fe 100644 --- a/src/coreclr/tools/aot/crossgen2/crossgen2.csproj +++ b/src/coreclr/tools/aot/crossgen2/crossgen2.csproj @@ -8,10 +8,10 @@ false true - linux-x64;linux-musl-x64;linux-arm;linux-musl-arm;linux-arm64;linux-musl-arm64;freebsd-x64;osx-x64;osx-arm64;win-x64;win-x86;win-arm64;win-arm + linux-x64;linux-musl-x64;linux-arm;linux-musl-arm;linux-arm64;linux-musl-arm64;freebsd-x64;osx-x64;osx-arm64;win-x64;win-x86;win-arm64;win-arm $(PackageRID) false - true + true @@ -43,10 +43,10 @@ + Condition="'$(NativeAotSupported)' == 'true' and '$(_IsPublishing)' == 'true'" /> diff --git a/src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Crossgen2.sfxproj b/src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Crossgen2.sfxproj index 2e0ef08ec3469..fe32e81ec4644 100644 --- a/src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Crossgen2.sfxproj +++ b/src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Crossgen2.sfxproj @@ -32,14 +32,14 @@