Hi, @Ajay Dhar
Welcome to Microsoft Q&A!
Glad to know you've resolved this issue! The issue is caused by an incorrectly installed C++ workload.
In visual studio installer:
Project properties:
Best regards,
Minxin Yu
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.