You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add CopilotSkipCliDownload option to .NET SDK (#494)
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>
<!-- Download and extract CLI binary. Set CopilotSkipCliDownload=true to skip if you install the CLI separately.-->
59
+
<TargetName="_DownloadCopilotCli"BeforeTargets="BeforeBuild"Condition="'$(CopilotSkipCliDownload)' != 'true' And '$(_CopilotPlatform)' != ''">
60
60
<ErrorCondition="'$(CopilotCliVersion)' == ''"Text="CopilotCliVersion is not set. The GitHub.Copilot.SDK.props file may be missing from the NuGet package." />
61
61
62
62
<!-- Compute paths using version (now available) -->
@@ -90,7 +90,7 @@
90
90
</Target>
91
91
92
92
<!-- Copy CLI binary to output runtimes folder and register for transitive copy -->
0 commit comments