Skip .NET Framework tests on non-Windows platforms (#1226)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
This commit is contained in:
Copilot 2026-01-30 14:56:24 -08:00 • committed by GitHub
commit 6a4e4d27dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -45,4 +45,10 @@
<!-- Don't use x64 when running netfx test procs on Windows ARM -->
<PreferNativeArm64>true</PreferNativeArm64>
</PropertyGroup>
<PropertyGroup>
<!-- Shared target frameworks for test projects and test support projects. net472 is only included on Windows. -->
<DefaultTestTargetFrameworks>net10.0;net9.0;net8.0</DefaultTestTargetFrameworks>
<DefaultTestTargetFrameworks Condition="$([MSBuild]::IsOSPlatform('Windows'))">$(DefaultTestTargetFrameworks);net472</DefaultTestTargetFrameworks>
</PropertyGroup>
</Project>