Skip to content

VCPKG_ROOT is not set when using Set Visual Studio Developer Environment #14083

@maxime-modulopi

Description

@maxime-modulopi

Extension version: 1.29.2
OS: Windows 11 x64

In a x64 Native Tools Command Prompt for VS 2022 terminal, VCPKG_ROOT is set to the vcpkg instance provided as part of Visual Studio.

When setting the Visual Studio toolchain via the Set Visual Studio Developer Environment command instead of launching vscode from this terminal, this env variable is missing even though both methods should be equivalent.

This breaks CMake configurations that rely on this env variable for vcpkg.

Metadata

Metadata

Assignees

Labels

Language Servicebugmore info neededThe issue report is not actionable in its current statetasks/build/debugAn issue relating to tasks.json (e.g. build issues)

Type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions