Any way to prevent NuGet downloads in lprun from writing to stderr?
We use LINQPad pretty extensively as a component of our devops processes through the command-line runner. Up until recently, I've been using persistent build agent VMs, but I recently switched to transient ones and it's exposed a problem. Since each build is performed on a fresh VM image, LINQPad needs to download NuGet packages specified in the script on each build. Unfortunatly, the message that a package needs to be downloaded gets sent to stderr, so the overall build pipeline thinks that there was a problem with the build:
Is there any way to either suppress the lprun errors about package downloads or send them to stdout instead?
Answers
-
Are you able to check the errorlevel returned by lprun? This will indicate whether there's been an error or not.