You can also update your Test Project to target multiple frameworks by replacing
<TargetFramework>net6.0</TargetFramework>
with
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
When you do that, then a set of tests is created and run for each framework.