Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Dotnet test can't find binary logger option on latest rtm build #51249

@rmarinho

Description

@rmarinho

Describe the bug

All our unit tests are failing in the latest sdk bump, seems dotnet test is not recognising the -bl /bl option we use to pass the binary logger path.

This is failing on Windows and Mac.

dotnet/maui#31983

To Reproduce

I wasn't able to reproduce it locally yet, I used dotnet test and also the same script we use ci (uses cake) and it works fine locally, but on CI is failing .

Exceptions (if any)

Link ot CI https://devdiv.visualstudio.com/DevDiv/DevDiv%20Team/_build/results?buildId=12579670&view=logs&j=865f72ff-31c8-54a5-06b6-1e2aca2a16ad&t=915520de-fc40-5184-a8e4-2cb9f34412d4&l=556

Executing: /Users/builder/azdo/_work/2/s/.dotnet/dotnet test "/Users/builder/azdo/_work/2/s/src/Graphics/tests/Graphics.Tests/Graphics.Tests.csproj" --logger "trx;LogFileName=Graphics.Tests-Debug.trx" --logger "console;verbosity=normal" --configuration Debug --results-directory "/Users/builder/azdo/_work/2/a/test-results" -dl:CentralLogger,"/Users/builder/azdo/_work/2/s/artifacts/msbuildlogger/Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll"*ForwardingLogger,"/Users/builder/azdo/_work/2/s/artifacts/msbuildlogger/Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll" /bl:/Users/builder/azdo/_work/2/a/logs/Graphics.Tests-Debug.binlog /p:VStestUseMSBuildOutput=false
The following arguments have been ignored : "--configuration Debug"
VSTest version 18.0.0 (x64)

The argument /bl:/Users/builder/azdo/_work/2/a/logs/Graphics.Tests-Debug.binlog is invalid. Please use the /help option to check the list of valid arguments.
The argument -binaryLogger:C:/a/_work/1/a/logs/integration-samples.binlog is invalid. Please use the /help option to check the list of valid arguments.

Further technical details

This appear when moving to the latest sdk bump

10.0.100-rtm.25479.115 to 10.0.100-rtm.25513.102

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions