I try to capture the error log of a dot.net application, written in vb/c#, in the log of a buildpipeline task.
The buildpipeline task is basically a powershell script which is calling the executeable of the dot.net application.
...
Start-Process -FilePath $Path -ArgumentList $argumentList -Wait
...
To allow to execute the dot.net application on networkmachines, I put this command inside a Script-Block and open a PSSession. (Maybe, it make the difference?)
Invoke-Command $Block -Session $session -ArgumentList $argumentList
Inside the dot.net application I print errors like
Console.Error.WriteLine($"+++++ {Message}:")
but the pipeline log keeps empty. I do not have make this expirence with other tools like git.exe or something else.
So what is wrong with the dot.net application?
-NoNewWindow, how did it go? - Levi Lu-MSFT