# Automatic MSBuild configuration for the Microsoft C++ Language Server in Copilot CLI

DevFeed: [Automatic MSBuild configuration for the Microsoft C++ Language Server in Copilot CLI](<https://devfeed.tech/articles/automatic-msbuild-configuration-for-the-microsoft-c-language-server-in-copilot-cli-129361.md>)

Original publisher: [Read original article](<https://devblogs.microsoft.com/cppblog/automatic-msbuild-configuration-for-the-microsoft-c-language-server-in-copilot-cli/>)

Author: Sinem Akinci

Published: 2026-11-10T17:02:48Z

Content type: release

Language: en

Sources: [C++ Team Blog](<https://devfeed.tech/sources/c-team-blog.md>)

Topics: [GitHub Copilot CLI](<https://devfeed.tech/topics/github-copilot-cli.md>), [code search](<https://devfeed.tech/topics/code-search.md>)

Tags: [automatic](<https://devfeed.tech/tags/automatic.md>), [automatic-configuration](<https://devfeed.tech/tags/automatic-configuration.md>), [automatically](<https://devfeed.tech/tags/automatically.md>), [c-plus-plus](<https://devfeed.tech/tags/c-plus-plus.md>), [cli](<https://devfeed.tech/tags/cli.md>), [code-intelligence](<https://devfeed.tech/tags/code-intelligence.md>), [compilation](<https://devfeed.tech/tags/compilation.md>), [compile](<https://devfeed.tech/tags/compile.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [context](<https://devfeed.tech/tags/context.md>), [copilot](<https://devfeed.tech/tags/copilot.md>), [database](<https://devfeed.tech/tags/database.md>), [github-copilot-cli](<https://devfeed.tech/tags/github-copilot-cli.md>), [go](<https://devfeed.tech/tags/go.md>), [json](<https://devfeed.tech/tags/json.md>), [msbuild](<https://devfeed.tech/tags/msbuild.md>), [project](<https://devfeed.tech/tags/project.md>), [source](<https://devfeed.tech/tags/source.md>), [symbols](<https://devfeed.tech/tags/symbols.md>)

## AI overview

For MSBuild-based C++ projects, the Microsoft C++ Language Server in GitHub Copilot CLI now automatically generates a `compile_commands.json` at startup when needed, using Visual Studio's MSBuild tooling to read compiler options, include paths, and preprocessor definitions from `.vcxproj` files and property sheets. This removes the prior need to supply the database or have Copilot find and run a configuration skill, giving language features such as go-to-definition, find-references, and build-aware diagnostics project context. Generation runs in the background; its duration depends on solution size and complexity, and progress is available with `/lsp logs`. The automation covers MSBuild only: for CMake, the text directs users to ask Copilot CLI to "load project" to use the generate-compile-commands skill; custom builds can use a custom extractor skill. Installation prerequisites, including EULA acceptance, still apply. Timeout settings and disabling the automation are covered in configuration docs, with changes taking effect at the next language-server startup.

## Source excerpt

Accurate C++ code intelligence starts with understanding how your project builds. Compiler options, include paths, and preprocessor definitions all affect how the language server interprets your source files. A compilation database, such as compile_commands.json, provides that context, so that tools such as go-to-definition and find-references can resolve symbols accurately. The Microsoft C++ Language Server now [...] The post Automatic MSBuild configuration for the Microsoft C++ Language Server in Copilot CLI appeared first on C++ Team Blog.