Got Error:
the exec task needs a command to execute in visual studio
Solution:
This is a common issue in visual studio and this error could be a cause when we add/remove the Pre-build event command line(s) and in Post-build event command line(s)…
Generally visual studio gives every line as a new command line to the command prompt to execute with “EXEC” command, if we by mistake keep any empty line… visual studio also send this empty line as a new command line and command prompt throws an error as it expects a valid command but what we sent is not a valid command to it…
as you can see the below image as i selected the empty line which by mistakenly entered in the project->properties Build Events Tab section…
Hope this solution work for you….
Happy Coding 🙂