error MSB6004: The specified task executable location "C:\WINDOWS\system32\cmd.exe" is invalid.

When you first posted this I was curious so Goolged error MSB6004: The specified task executable location “C:\WINDOWS\system32\cmd.exe”

One of the replies turned up this StackOverflow answer.

However that notes

  • In administrator command prompt, run sfc /scannow

Did you run sfc /scannow as a regular user or was it started with Run as administrator?

1 Like