Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TestAdapter 3.7 does not work with multiple TargetFrameworks #4448

Closed
frobijn opened this issue Dec 25, 2024 · 1 comment
Closed

TestAdapter 3.7 does not work with multiple TargetFrameworks #4448

frobijn opened this issue Dec 25, 2024 · 1 comment

Comments

@frobijn
Copy link

frobijn commented Dec 25, 2024

Describe the bug

I've got a class library project and a MSTest project that both have <TargetFrameworks>net8.0;net472</TargetFrameworks>. With MSTest.TestAdapter 3.6.4 (in the latest VS2022) two sets of unit tests are shown in the Test Explorer, one for each target framework, and tests from both sets can be selected and run.

After upgrading to 3.7.0 the net472 tests are no longer discovered. The test output states:

No test is available in ...\net472\mytestassembly.dll. Make sure that test discoverer & executors are registered and platform & framework version settings are appropriate and try again.

Steps To Reproduce

MSTestAdapter_364 - Example test project with MSTest.TestAdapter 3.6.4. The test can be run for both net472 and net8.0

MSTestAdapter_370 - Same project after "upgrading" to MSTest.TestAdapter 3.7. The net472 tests cannot be run anymore.

@Youssef1313
Copy link
Member

Thanks for reporting this @frobijn.

This looks like a duplicate of #4426. I will go ahead and close. Meanwhile, you can subscribe to notifications on #4426.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants