diff --git a/Tests/CSharpCore/Tests.NetStandard.csproj b/Tests/CSharpCore/Tests.NetStandard.csproj
index 1adae074..e8b6e758 100644
--- a/Tests/CSharpCore/Tests.NetStandard.csproj
+++ b/Tests/CSharpCore/Tests.NetStandard.csproj
@@ -10,13 +10,15 @@
Exe
- true
- true
-
- net6.0;net8.0;net471
- net6.0;net471
- net6.0;net8.0
- net6.0
+ $([System.Text.RegularExpressions.Regex]::Replace($(NETCoreSdkVersion), '-.*', ''))
+ true
+ true
+ true
+
+ net6.0
+ ($TargetFrameworks);net8.0
+ ($TargetFrameworks);net9.0
+ ($TargetFrameworks);net471