testfx icon indicating copy to clipboard operation
testfx copied to clipboard

Drop support for < net8.0 in MSTest and MTP

Open Youssef1313 opened this issue 8 months ago • 7 comments

As VSTest latest version supports only net8.0+ and net462, I think we should take the same step in MSTest and MTP.

Youssef1313 avatar May 20 '25 15:05 Youssef1313

You would want this to be part of v4 as it's a technical breaking change.

Evangelink avatar May 21 '25 09:05 Evangelink

@Evangelink The reason I'm putting it in 3.10 is that a similar breaking change was taken already in VSTest in a minor release. https://www.nuget.org/packages/Microsoft.NET.Test.Sdk/17.14.0 is net8.0+ while https://www.nuget.org/packages/Microsoft.NET.Test.Sdk/17.13.0 is netcoreapp3.1+.

Also, at least in theory, older TFMs should still work for the case of MSTest and MTP via netstandard2.0. There could be some problems we are not anticipating, but they will probably be fixable?

Youssef1313 avatar May 21 '25 09:05 Youssef1313

Yes and I am (was) against the change but VSTest is following VS versioning scheme so they don't guarantee any semantic meaning while we do. I think it's important to respect that, I do expect still a lot of teams to use MSTest with non-supported TFMs.

If we have some tests to prove that netstandard2.0 fallback is good enough then it could be fine. I still think it's not respecting semantic versioning and so not ideal.

Evangelink avatar May 22 '25 10:05 Evangelink

I don't see how netstandard2.0 would produce a runnable exe for MTP, while technically you can run it, it won't work out of the box, and so it will be a breaking change.

On the other hand it seems like self-imposed limitation to have to make big breaking changes in mstest v4 and mtp v2, maybe those can move to "vNext" and we can follow normal semantic versioning with smaller breaking changes in v4, v5 etc.

nohwnd avatar May 22 '25 10:05 nohwnd

Moving to v4 then. We will then have to be careful not to update VSTest dependency to 17.14. 😕

Youssef1313 avatar May 22 '25 10:05 Youssef1313

Is there any plans for V4 now?

Romfos avatar Jun 18 '25 14:06 Romfos

We're currently aligning internally on the release timeline for V4. We expect to have a confirmed date by the end of the month and will share an update as soon as it's finalized.

pavelhorak avatar Jun 18 '25 16:06 pavelhorak