Before .NET 8 when you build an application from the command line, the output looked like this:
Starting with .NET 8 a new terminal logger is available that has the following improvements compared to the default console logger:
- Better use of colors
- Display of the execution time
- Better indication of the build status
- Improved grouping of warnings and errors
- Hyperlink to the output file if the build succeeds
Unfortunately this new terminal logger is not enabled by default. You need to use the ‘--tl’ flag to enable it:
There is an option to always use this new terminal logger by setting the MSBUILDTERMINALLOGGER
environment variable to any of the following values:
true
: Always use the new terminal loggerfalse
: Never use the new terminal loggerauto
: Use the new terminal logger when supported by your console