Visual Studio 2022 Developer Command Prompt Stuck on Loading Screen

Steve Yu 5 Reputation points
2025-02-15T16:45:30.8+00:00

After opening the Visual Studio 2022 Developer Command Prompt, the loading screen gets stuck.

**********************************************************************
** Visual Studio 2022 Developer Command Prompt v17.13.0
** Copyright (c) 2022 Microsoft Corporation
**********************************************************************

In Task Manager, it shows that pwsh has very high usage. Also, vcpkg is not working, displaying the following error:

error: in triplet x64-windows: Unable to find a valid Visual Studio instance

Could not locate a complete Visual Studio instance

The following paths were examined for Visual Studio instances:

    D:\Microsoft Visual Studio\BuildTools\VC\Auxiliary/Build\vcvarsall.bat

Repairing the installation has not resolved the issue.

I only installed Build Tools, not the IDE. Is there any relevance?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,447 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 30,921 Reputation points Microsoft Vendor
    2025-02-17T08:46:20.92+00:00

    Hi @Steve Yu,

    Welcome to Microsoft Q&A! 

    Did you install any workloads when installing the Visual Studio Build Tools? 

    Please open the Visual Studio Installer > Modify > ensure that the “Desktop development with C++” workload is installed. Then, reboot your machine and check it again.

    Besides, Visual Studio Build Tools are only CLI tools and you can install the build tools and VS IDE side by side. I recommend you install the Visual Studio 2022 Community, Professional or Enterprise edition.

    Download Visual Studio Tools - Install Free for Windows, Mac, Linux 

    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.


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.