Hi @aman sahay ,
Welcome to Microsoft Q&A!
Please try the following command to search all installed VS instances:
C:\Program Files (x86)\Microsoft Visual Studio\Installer>vswhere -products *
If it doesn’t work, you can use the Visual Studio Setup PowerShell Module to query the VS instances.
More tools to detect the VS instances, please refer to: Tools for detecting and managing Visual Studio instances.
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.