views:

347

answers:

2

When compiling a project in Visual Studio, the error message "the exec task needs a command to execute" appears, with no line number. What does this error mean?

(Apologies for asking and answering my own question; I just found an answer as I was writing this. Have made it community wiki, so as not to offend.)

+3  A: 

Ken Egozi has found an answer.

The message is caused by stray newline characters in pre or post build commands.

Richie Cotton
A: 

yes, this is correct. remove the newline at Post-build event command line in Build Events.

anand