Hello @Sahil Dhaliwal ,
Welcome to Microsoft Q&A forum.
It’s expected that when you click the "Launch" button, Developer Command Prompt for VS 2022 appears and redirects to the directory of "Build Tools".
Build Tools contains compilers and it’s different from other editions of VS IDE. It doesn’t include a UI interface. Generally, running the commands is the correct way to use it, so above behavior is expected. See following screenshot:
But the error message is not expected, please make sure that you have installed the workloads that you want and open VS Installer, click More, Repair to repair VS Build Tools.
Best Regards,
Tianyu
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.