How to access and use vcpkg in Visual Studio 2022 v17.7.1

Mike L 0 Reputation points
2023-08-16T16:26:06.0066667+00:00

I Previously had Visual Studio 2022 Community 17.3.3. I was unable to access or use the vcpkg manager.

I just upgraded to v17.7.1 and am still unable to access or use the manager. It is not recognized as an internal or external command in the Developer Command Prompt. And it is not listed in the 'Configuration Properties' of my projects as advertised here: https://devblogs.microsoft.com/cppblog/vcpkg-is-now-included-with-visual-studio/

Can you please advise me on how to access this new feature?

Developer technologies | Visual Studio | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2023-08-17T07:22:22.87+00:00

    Hi @Mike L, 

    Welcome to Microsoft Q&A! 

    Please go to Visual Studio Installer > Modify > Individual components tab > ensure that “vcpkg package manager” is installed.

    Then, run the vcpkg command from the Developer Command Prompt again. 

    If it doesn’t work, please try to add the vcpkg.exe directory to system environment variables by going to Settings > System > Advanced system settings > Environment Variables > System variables > Path > Edit

    It is by default located at: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\vcpkg\vcpkg.exe.  

    After adding the path, please restart your computer and try again. 

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

     

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.