Skip to content

vcpkg not able to get valid VS instance #48050

@jyotip-m05

Description

@jyotip-m05

Describe the bug
vcpkg not able to get valid VS instance

Environment

  • OS: Windows
  • Compiler: MSVC x64/x86 v143 build tool

To Reproduce
Steps to reproduce the behavior:

  1. ./vcpkg install
  2. See error not able to get valid VS instance

Repro code when

Expected behavior
It should install

Failure logs

PS C:\Users\jmbab\OneDrive\Desktop> vcpkg install fmt
Computing installation plan...
The following packages will be built and installed:
    fmt:[email protected]
  * vcpkg-cmake:x64-windows@2024-04-23
  * vcpkg-cmake-config:x64-windows@2024-05-23
Additional packages (*) will be modified to complete this operation.
error: in triplet x64-windows: Unable to find a valid Visual Studio instance
  at "C:\Users\jmbab\OneDrive\Desktop\cmake"
The following Visual Studio instances were considered:
  D:\Program Files\Microsoft Visual Studio\2022\Community
The following paths were examined for Visual Studio instances:
  D:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary/Build\vcvarsall.bat

Additional context
It is happening after the new visual studio update of VS Community 2022 v17.14.19

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions