AI News

GitHub Copilot CLI Now Configures MSBuild-Based C++ Projects Automatically

GitHub has bundled the MSBuild compile-commands extractor into its C++ language server so Copilot CLI can generate project context automatically.

Sunil Kumar2 min read
C++ development with GitHub Copilot CLI and MSBuild

GitHub has updated the Microsoft C++ Language Server used by GitHub Copilot CLI so that it can automatically prepare the compilation database needed for MSBuild-based C++ projects. The improvement was listed in the GitHub Changelog on November 10, 2026 and removes a setup step that previously required developers or an AI agent to locate and run a separate configuration skill.

What changed for C++ projects?

Language-server features such as go-to-definition, find references and accurate symbol navigation depend on understanding how a project is compiled. In many C++ environments, that information is supplied through a compile_commands.json file. For MSBuild projects, developers previously had to provide the file themselves or ask Copilot to discover and run a configuration skill that generated a compilation database.

GitHub says the extractor is now bundled directly with the C++ language server. When the language server starts after a project is opened, Copilot can invoke the extractor automatically. That makes compilation database generation more predictable and removes the need for a separate agent-driven setup step.

Why this matters for AI-assisted development

Without correct project configuration, an AI coding agent may have incomplete information about include paths, compiler flags, macros and build targets. That can lead to weak code navigation or suggestions that do not match the way the project is actually built. Automating the extraction step gives Copilot a more reliable basis for understanding an MSBuild project before it starts editing code.

GitHub also says the change reduces setup token usage because the agent no longer needs to spend time discovering and running a configuration skill. That is a small but useful example of improving agent efficiency by making the tool environment more deterministic, rather than relying on the model to repeatedly infer how to configure it.

What is not covered?

The announcement is specifically about MSBuild-based C++ projects using the Microsoft C++ Language Server for Copilot CLI. GitHub says developers using CMake can continue to use the existing generate-compilation-commands skill, while custom build systems can use a custom extractor skill or supply their own compilation database. An active GitHub Copilot subscription is required.

How to try it

Developers should follow the Microsoft C++ Language Server quick-start instructions, install the plugin and accept its licence terms. When a repository containing an MSBuild-based C++ project is opened, Copilot should generate the compilation database automatically as the language server starts.

Teams should still check the generated configuration when working with unusual build setups, cross-compilation toolchains or generated source trees. Automatic setup removes repetitive work, but the build system remains the authoritative source for how the application is compiled.

Sources

Share this article

Written by

Sunil Kumar

Founder of FutureTechie and BoltPane. Writes clear explainers on AI, cybersecurity, gadgets and developer tools for curious readers who want signal over hype.

106 articles View profile

Get the tech briefing

AI, gadgets, software and cybersecurity — distilled into one short briefing every weekday.