microsoft / azure-pipelines-tasks

Tasks for Azure Pipelines
https://aka.ms/tfbuild
MIT License
3.42k stars 2.58k forks source link

[enhancement]: `DotNetCoreCLI@2` Task should pass MSBuild logger to all MSBuild based tatsks #18990

Open afscrome opened 9 months ago

afscrome commented 9 months ago

Task name

DotNetCoreCLI@2

Describe your feature request here

The DotNetCoreCLI task has a custom MSBuild logger to easily show errors & warnings in the Azure Devops UI, which is great. However this logger is currently only passed in to the build command, so doesn't clearly highlight restore, test or publish failures.
https://github.com/microsoft/azure-pipelines-tasks/blob/6b291c4a2f8b945b469259cc4dc685a966bc0335/Tasks/DotNetCoreCLIV2/dotnetcore.ts#L111-L114

This logger should be passed in to dotnet commands that use msbuild under the hood. I the commands this should be done for are :

KirillOsenkov commented 6 months ago

This seems the same as #16366