We ran into a problem with integrating MSBuild with PsExec. In our scenario, we run PsExec within a msbuild build file. The PsExec command runs another MSBuild file on a remote server to perform a task which we'd like to see its output on ourside.
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
....
<Exec
Command="$(PsExecPath) \\$(RemoteIP) -u $(Username) -p $(Password) -w $(RemoteWorkingDir) msbuild.exe fullbuild.xml /t:Release" >
</Exec>
It works fine and it does not hang, but the output of the remote msbuild command is not appearing on the console. When I run the psexec directly from the command line, it works fine and the remote build output shows up on the screen.
We are using PsExec 2.11 and MSBuild 4.0. What am I missing here?