Unable to run unit tests with dotnet cli

Open 💬 4 comments Opened Feb 17, 2026 by jmbryan4

What version of Codex CLI is running?

codex-cli 0.101.0

What subscription do you have?

Plus

Which model were you using?

gpt-5.3-codex high

What platform is your computer?

Darwin 25.2.0 arm64 arm

What terminal emulator and version are you using (if applicable)?

Ghostty

What issue are you seeing?

Codex is unable to run unit tests on a .NET 10 unit test project.
It either fails or hangs.
thread ID 019c6d83-a37d-7573-88d6-b3a2592ad504

some example output of what it says:

dotnet test now fails due the .NET 10 + Microsoft.Testing.Platform opt-in requirement, so I’m checking the test project settings and then I’ll run with the correct flag to validate the suite.

• The same VSTest-target error persists even without filters. I’m trying the explicit MTP opt-in property on the command line next to see if this environment ignores the project-level setting.

What steps can reproduce the bug?

Try running a test project via dotnet cli with MTP runner.
see: https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-test
also see: https://learn.microsoft.com/en-us/dotnet/core/testing/unit-testing-with-dotnet-test

minimal-mtp-dotnet10-tests.zip
unzip and run tests in project. see README

dotnet test --solution minimal-mtp-dotnet10-tests.slnx

What is the expected behavior?

tests run successfully

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗