MSBuild.NodeTools
MSBuild.NodeTools copied to clipboard
Error to locate grunt.cmd
Since commit https://github.com/kmees/MSBuild.NodeTools/commit/eee037cf12401986b27438f6400a33be4ccbca56, search of grunt.cmd path fails when the where command is used. The reason is that the ConsoleToMsBuild attribute has been removed from Exec task so the TaskParameter named ConsoleOutput is no longer filled and the GruntExecutable becomes empty. No error is detected because the command is successfully executed and the ExitCode is 0. But the GruntExecutable is undefined and the execution of the grunt file failed.
The Grunt target should be restored as it :
<Exec Command="$(WINDIR)\system32\where.exe grunt"
ContinueOnError="true"
IgnoreExitCode="true"
ConsoleToMsBuild="true"
Condition=" !Exists('$(GruntExecutable)') ">
<Output TaskParameter="ExitCode" PropertyName="GruntExitCode" />
<Output TaskParameter="ConsoleOutput" PropertyName="GruntExecutable" />
</Exec>