From 4b37894dc79d0b2e9babac150371abce92be4b38 Mon Sep 17 00:00:00 2001 From: Steve Sanderson Date: Tue, 17 Feb 2026 15:10:30 +0000 Subject: [PATCH] Add CopilotSkipCliDownload option to .NET SDK Add MSBuild property CopilotSkipCliDownload that when set to true skips automatic download and bundling of the Copilot CLI binary. This is useful for users who install the CLI separately (e.g., via npm or a package manager) and want to avoid the build-time download. When skipped, users must ensure COPILOT_CLI_PATH or the CliPath option points to a valid CLI installation at runtime. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- dotnet/src/build/GitHub.Copilot.SDK.targets | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dotnet/src/build/GitHub.Copilot.SDK.targets b/dotnet/src/build/GitHub.Copilot.SDK.targets index bdf24af8..b290e2b9 100644 --- a/dotnet/src/build/GitHub.Copilot.SDK.targets +++ b/dotnet/src/build/GitHub.Copilot.SDK.targets @@ -55,8 +55,8 @@ 600 - - + + @@ -90,7 +90,7 @@ - + <_CopilotCacheDir>$(IntermediateOutputPath)copilot-cli\$(CopilotCliVersion)\$(_CopilotPlatform) <_CopilotCliBinaryPath>$(_CopilotCacheDir)\$(_CopilotBinary) @@ -101,7 +101,7 @@ - + <_CopilotCacheDir>$(IntermediateOutputPath)copilot-cli\$(CopilotCliVersion)\$(_CopilotPlatform) <_CopilotCliBinaryPath>$(_CopilotCacheDir)\$(_CopilotBinary)