I am trying to execute pre-build steps on multiple embedded projects across multiple platforms. No commands seem to work, even commands as simple as Echo fail.
Below is an example of the commands which are failing the build from the vgdbproj file. I have them skipped here because they were failing the build, but that is not the issue.
<PreBuildActions>
<CustomActionBase xsi:type="CommandLineAction">
<SkipWhenRunningCommandList>true</SkipWhenRunningCommandList>
<RemoteHost>
<HostName>BuildMachine</HostName>
<Transport>BuiltinShortcut</Transport>
</RemoteHost>
<Command>cmd /c "echo test"</Command>
<WorkingDirectory>$(BuildDir)</WorkingDirectory>
<BackgroundMode>false</BackgroundMode>
</CustomActionBase>
<CustomActionBase xsi:type="CommandLineAction">
<SkipWhenRunningCommandList>true</SkipWhenRunningCommandList>
<RemoteHost>
<HostName>BuildMachine</HostName>
<Transport>BuiltinShortcut</Transport>
</RemoteHost>
<Command>cmd /c "cd ../Common/parameters && python parameter_headercreator.py"</Command>
<WorkingDirectory>$(BuildDir)</WorkingDirectory>
<BackgroundMode>false</BackgroundMode>
</CustomActionBase>
</PreBuildActions>
I have tried both the call to cmd ( via cmd /c) and the direct calls and neither method works.
The log output is as follows:
Executing pre-build actions
Run "cmd /c "echo test" " in directory "C:\_Projects\HMI_Prod_Firmware\ESP32" on local computer
cmd /c "echo test"
-------------------------------------------------------------
Command exited with code -1
Executable: cmd /c "echo test"
Arguments:
Directory: C:\_Projects\HMI_Prod_Firmware\ESP32
Command-line action failed
Thank you.