We faced the problem of integrating MSBuild with PsExec . In our scenario, we run PsExec in the msbuild build file. The PsExec command runs another MSBuild file on the remote server to complete the task that we would like to see in the output.
<?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 freeze, but the output of the remote msbuild command does not appear on the console. When I start psexec directly from the command line, it works fine and the output of the remote assembly appears on the screen.
We use PsExec 2.11 and MSBuild 4.0. What am I missing here?
Houman
source share