From 573122bfd6d2e8d3334649a7f8aaf70f333434f1 Mon Sep 17 00:00:00 2001
From: Adeel Mujahid <3840695+am11@users.noreply.github.com>
Date: Fri, 20 Jun 2025 00:49:15 +0300
Subject: [PATCH] Add CG2 to source-build bundle (#49241)
---
src/Layout/Directory.Build.props | 6 ++++++
src/Layout/redist/targets/GenerateBundledVersions.targets | 4 ++++
src/Layout/redist/targets/RestoreLayout.targets | 6 ++++++
3 files changed, 16 insertions(+)
diff --git a/src/Layout/Directory.Build.props b/src/Layout/Directory.Build.props
index cc25a289be19..9de429a4297e 100644
--- a/src/Layout/Directory.Build.props
+++ b/src/Layout/Directory.Build.props
@@ -54,6 +54,12 @@
true
true
+
+ <_IsCommunityPlatform Condition="'$(OSName)' != 'win' and '$(OSName)' != 'osx'
+ and !('$(OSName)' == 'linux' and ('$(TargetArchitecture)' == 'x64' or '$(TargetArchitecture)' == 'x86' or '$(TargetArchitecture)' == 'arm' or '$(TargetArchitecture)' == 'arm64'))">true
+ true
+
true
true
diff --git a/src/Layout/redist/targets/GenerateBundledVersions.targets b/src/Layout/redist/targets/GenerateBundledVersions.targets
index 2f683b957af1..94f679f464dc 100644
--- a/src/Layout/redist/targets/GenerateBundledVersions.targets
+++ b/src/Layout/redist/targets/GenerateBundledVersions.targets
@@ -276,6 +276,10 @@
Condition="'$(BundleNativeAotCompiler)' == 'true'"
Include="$(ProductMonikerRid)" />
+
+
+
+