Text output from build.ps1 after summary? #243
Answered
by
nightroman
boernsen-development
asked this question in
Q&A
-
|
Is it somehow possible to produce text output from inside the build.ps1, which will be placed after the summary? Example: Build Hello ...\Hello.build.ps1
Task /Hello
Hello, World!
Done /Hello 00:00:00.01
Build succeeded. 1 tasks, 0 errors, 0 warnings 00:00:00.02
MY OUTPUT SHOULD BE HERE... |
Beta Was this translation helpful? Give feedback.
Answered by
nightroman
Jan 22, 2026
Replies: 1 comment 8 replies
-
|
Hi @boernsen-development. Do you mean with something defined in a script? This is not possible at the moment, I think. This is probably doable as a new feature. I am very careful about adding something new, do not want IB to gradually become bloated. Have you tried Exit-Build {
'MY OUTPUT IS HERE'
}
task Hello {
'Hello, World!'
}produces: |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Having considered so far available reasonable options, I am not going to change anything, for now at least.
In the meantime, here is the solution that should fit your requirements. It uses some IB internals but they will hardly change.
Use
Exit-Buildand${*}.Warnings = @()in it. This effectively discards the collected warnings and their unwanted output.In addition to discarding you may also have your own custom processing, e.g. still print warnings but before your final output.