Skip to content

dotnet test is broken in net10 rc2 in Microsoft.Testing.Platform (MTP) #51283

@moh-hassan

Description

@moh-hassan

The dotnet.config file (which used an INI-like format) is no longer supported in the net10 rc2 release of MTP. This is a breaking change.

I updated net10 by installing net10 rc2. For a solution that is using MsTest and nunit projects with dotnet.config in solution folder, I get error.

error Testing with VSTest target is no longer supported by Microsoft.Testing.Platform on .NET 10 SDK and later. If you use dotnet test, you should opt-in to the new dotnet test experience.

I find that the new configuration is using global.json like:

{
    "test": {
        "runner": "Microsoft.Testing.Platform"
    }
}

Now , the tests are working fine.

Please, can you update documentation for using dotnet test in MTP mode in net10. and refer to the new json format .

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions