Although years after the initial question, this may help someone else.
Another reason for this may be the length of the output path. You can get this problem without being obvious if your project file paths> just <are small enough to fit the limit, but when building additional paths (/ obj / debug, etc.) exceed the limit.
The fix, obviously, is to bring the root of your solution as close to the root as possible (i.e. try using C: \ a [your solution]).
If it's still too long, you have a problem.
It is annoying that VS does not explain this, even when logging the diagnostic level.
source share