dotnet / dotnet/sdk

{assembly} or {framework} options to the logger don't work with .NET 10

Open
#52,228 3 comments 0 reactions 0 assignees View on GitHub
Area-dotnet test Area-dotnet test (VSTest)
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

## Describe the bug

With .NET 10 installed

`dotnet test --logger \"nunit;LogFilePath=\"{assembly}\"-\"{framework}\"-test-output.xml\"`

produce an error MSB4177: Invalid property. The name "{assembly}-{framework}-test-output.xml" contains an invalid character "{".

## Steps To Reproduce

Call

`dotnet test --logger \"nunit;LogFilePath=\"{assembly}\"-\"{framework}\"-test-output.xml\"`

like described in [NUnit Test Logger](https://github.com/spekt/nunit.testlogger)

## Expected behavior

It works like in .NET 8

## Actual behavior

error MSB4177

----

Reported by @JoergHoffmannMeVis in https://github.com/microsoft/testfx/issues/7141

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the reported `dotnet test --logger "nunit;LogFilePath="{assembly}"-"{framework}"-test-output.xml"` command with .NET 10 and compare it with .NET 8. Trace the dotnet test logger argument handling and the NUnit Test Logger behavior; done means the documented command works without MSB4177 and produces the expected assembly- and framework-named output file.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
cli, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.