Share via

Visual Studio 2022 Developer Command Prompt Stuck on Loading Screen

SteveYu-9609 10 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?

Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other

A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.

0 comments No comments

2 answers

Sort by: Most helpful
  1. SteveYu-9609 10 Reputation points
    2025-06-18T05:24:05.13+00:00

    I've resolved the problem.

    It's caused by the build-in Powershell of Windows.

    To resolve it, you can download the latest version of Powershell, and then replace the one that comes with system.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

  2. Anna Xiu-MSFT 31,201 Reputation points Microsoft External Staff
    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.

    Was this answer helpful?


Your answer

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