Question

I have a solution with a lot of projects and sometimes this error appears. I have been reinstalling once and it resolved the problem but now even if i reinstall i always get this error and i don't know why.

Generally it means that there is something wrong when execute the batch command in Microsoft.CppCommon.targets. Could you please post your the whole compile output related to this error?

Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

it's likely that you projects use a custom build. You can openMicrosoft.CppCommon.targets by notepad and check which line it report that error. I think it's because " The system cannot find the path specified." Maybe your custom build srcipt want to
access a path which doesn't exist.

Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.