Hello @Raju, Ilaiyaraja,
Welcome to Microsoft Q&A forum.
Did you modify some .config files or some settings, maybe by mistake?
Please right-click MSBuild.exe.config file and click Open With => Choose another app => select Notepad => confirm that the supported runtime version of this line: <supportedRuntime version="v4.0" sku=".NETFramework, Version=v4.6" />
is set to v4.0.
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.