When compiling a project in Visual Studio, I got the error message

"the exec task needs a command to execute"

, with no line number or anything.


Check the "build Events" in the project properties.
The error is caused by a newline character in the pre or post build text fields.

This applies to Visual Studio 2005, 2008 and 2010!

Tags: | Categories: IDE | Tips and tricks | Web development