Skip to content

MSBuild command line arguments aren't logged in dotnet build #7216

@rainersigwald

Description

@rainersigwald

After dotnet/sdk#16577, the binlog no longer contains the MSBuild command line (because the process command line isn't MSBuild's any more).

Process = "S:\sdk\artifacts\bin\redist\Debug\dotnet\dotnet.exe"
MSBuild executable path = "S:\sdk\artifacts\bin\redist\Debug\dotnet\sdk\6.0.200-dev\MSBuild.dll"
Command line arguments = "S:\sdk\artifacts\bin\redist\Debug\dotnet\sdk\6.0.200-dev\dotnet.dll build -bl S:\work\wpf_demo\wpf_demo.csproj"
Current directory = "S:\sdk"
MSBuild version = "17.1.0-preview-21610-01+96a618ca5"

instead of

Process = "C:\Program Files\dotnet\dotnet.exe"
MSBuild executable path = "C:\Program Files\dotnet\sdk\5.0.404\MSBuild.dll"
Command line arguments = ""C:\Program Files\dotnet\sdk\5.0.404\MSBuild.dll" -maxcpucount -verbosity:m -restore -consoleloggerparameters:Summary -bl -p:TargetFramework=net5.0-windows "-distributedlogger:Microsoft.DotNet.Tools.MSBuild.MSBuildLogger,C:\Program Files\dotnet\sdk\5.0.404\dotnet.dll*Microsoft.DotNet.Tools.MSBuild.MSBuildForwardingLogger,C:\Program Files\dotnet\sdk\5.0.404\dotnet.dll""
Current directory = "S:\work\wpf_demo"
MSBuild version = "16.11.2+f32259642"

Filing this here instead of in the SDK because I think it's more of an MSBuild-layer concern, but happy with a fix in either spot.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions