Hello @Mohammad Mohsin Siddiqui,
Thanks for taking time to post this issue in Microsoft Q&A forum.
The doc MSBuild Task - MSBuild | Microsoft Learn says StopOnFirstFailure:
If true, when one of the projects fails to build, no more projects will be built.
Currently this is not supported when building in parallel (with multiple processors).
Here’re suggestions you can try:
1 set /p:CL_MPCount=1
2 set /p:BuildInParallel=false
3 search in the VS Marketplace to see if there is a suitable extension
https://marketplace.visualstudio.com/
Feel free to contact us.
Sincerely,
Douxu
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.