From 396e4517803171df42274fabf956bc16c0c4ef05 Mon Sep 17 00:00:00 2001 From: Steve Sanderson Date: Mon, 16 Feb 2026 16:18:27 +0000 Subject: [PATCH] Fix maccatalyst RID detection in SDK targets The OS detection logic falls through to 'linux' for maccatalyst-* RIDs since they don't start with 'win' or 'osx'. Add explicit handling for the 'maccatalyst' prefix to map it to 'osx', so the correct Darwin CLI binary is downloaded. Relates to #454 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- dotnet/src/build/GitHub.Copilot.SDK.targets | 1 + 1 file changed, 1 insertion(+) diff --git a/dotnet/src/build/GitHub.Copilot.SDK.targets b/dotnet/src/build/GitHub.Copilot.SDK.targets index 35b017662..d5eeb4ec9 100644 --- a/dotnet/src/build/GitHub.Copilot.SDK.targets +++ b/dotnet/src/build/GitHub.Copilot.SDK.targets @@ -8,6 +8,7 @@ <_CopilotOs Condition="'$(RuntimeIdentifier)' != '' And $(RuntimeIdentifier.StartsWith('win'))">win <_CopilotOs Condition="'$(_CopilotOs)' == '' And '$(RuntimeIdentifier)' != '' And $(RuntimeIdentifier.StartsWith('osx'))">osx + <_CopilotOs Condition="'$(_CopilotOs)' == '' And '$(RuntimeIdentifier)' != '' And $(RuntimeIdentifier.StartsWith('maccatalyst'))">osx <_CopilotOs Condition="'$(_CopilotOs)' == '' And '$(RuntimeIdentifier)' != ''">linux