Visual Studio 2010 compilation message error “The exec task needs a command to execute”

If it happens this strange and cryptic error in Visual Studio 2010 while compiling any project:

“The exec task needs a command to execute”

the reason is this: in any pre or post build event, there is a carriage return character to remove, because Visual Studio 2010 poorly digested the carriage return characters in ‘text editor pre-post build events.

Leave a Reply

Your email address will not be published. Required fields are marked *