-
Notifications
You must be signed in to change notification settings - Fork 264
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
Support for older .NET Frameworks #196
Comments
@leopignataro : Thanks for bringing this up. There aren't any plans to support .Net 4.0 or lower in the near future given the delta in terms of support matrix from net40 to net45 isn't large. We haven't also heard back from a lot of users about wanting this. On a side note, the core of MSTest V2 is built for netstandard 1.0 (equivalent to net45) so it works cross-platform. Moving it to net40 would require a code split and a bunch of #if statements since not all the APIs we require are similar in lower .net frameworks. /cc: @pvlakshm. |
What prevents you from targeting the latest and greatest framework from your tests? You always can continue to target whatever you'd like from the app itself. |
@abatishchev One often wants to test features specifically designed around older targets. I have a lot of |
@igitur fair point, thanks for the explanation |
Precisely as @igitur explained. Moreover, it is not uncommon for packages to have different dependencies for each target platform. Therefore, it is important to test each implementation, which might rely on an entirely different set of dependencies. |
Please see comment. This is not in plan. |
Dear testfx team,
Are there plans to support older .NET Frameworks, such as 4.0 (and perhaps even 3.5)?
This seems to be a gap. On the MS docs topic Developing Libraries with Cross Platform Tools, net40 is even suggested as a good baseline:
However, test projects created with "dotnet new mstest" and targeted to net40 don't run with "dotnet test". The reason for this seems to be that the packages MSTest.TestAdapter and MSTest.TestFramework don't support .NET Framework 4.0.
We have a class library multitargeted to .NET Frameworks 4.0 and 4.5, currently working on adding support for .NET Standard 2.0. We currently have separate test projects for each supported platform, with a trick to reuse the actual test code. It would be wonderful to have a single test project.
The text was updated successfully, but these errors were encountered: