testfx
testfx copied to clipboard
MSTest.TestAdapter should target newer TargetFrameworks
Description
Today MSTest.TestAdapter targets old and out of support target frameworks, resulting in a lot of unnecessary dependencies being downloaded.
Steps to reproduce
Reference MSTest.TestAdapter in a net6.0 project.
Expected behavior
No additional packages downloaded since all the API needed by MSTest.TestAdapter is present in the framework.
Actual behavior
Many packages downloaded (100s) due to using the older package dependency groups that bring down the old NETStandard.Library package reference.
This can also be observed in the project.assets.json
Environment
Repro project:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="MSTest.TestAdapter" Version="2.2.9" />
</ItemGroup>
</Project>
Repro steps
- dotnet restore
- examine
project.assets.json
Thank you for reporting this, we are aware of this issue. Unfortunately we cannot break compatibility with older TFMs, so we are adding newer frameworks to our packages slowly. I'll keep this assigned to myself so I can monitor its progress.
Perhaps it is better to solve it with V3 and v2 leave for hotfixes?
Yes, that's the plan.
This will be available in 2.3.0