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:
parent
50d6d0b570
commit
6a4e4d27dc
5 changed files with 9 additions and 12 deletions
9
.github/workflows/ci-build-test.yml
vendored
9
.github/workflows/ci-build-test.yml
vendored
|
|
@ -47,15 +47,6 @@ jobs:
|
|||
10.0.x
|
||||
9.0.x
|
||||
|
||||
# NetFX testing on non-Windows requires mono
|
||||
- name: 🔧 Setup Mono
|
||||
if: runner.os == 'Linux'
|
||||
run: sudo apt-get install -y mono-devel
|
||||
|
||||
- name: 🔧 Setup Mono on macOS
|
||||
if: runner.os == 'macOS'
|
||||
run: brew install mono
|
||||
|
||||
- name: 🔧 Set up Node.js
|
||||
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
|
||||
with:
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFrameworks>net10.0;net9.0;net8.0;net472</TargetFrameworks>
|
||||
<TargetFrameworks>$(DefaultTestTargetFrameworks)</TargetFrameworks>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<PublishAot Condition="'$(TargetFramework)' == 'net9.0'">true</PublishAot>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFrameworks>net10.0;net9.0;net8.0;net472</TargetFrameworks>
|
||||
<TargetFrameworks>$(DefaultTestTargetFrameworks)</TargetFrameworks>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<AssemblyName>TestServer</AssemblyName>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFrameworks>net10.0;net9.0;net8.0;net472</TargetFrameworks>
|
||||
<TargetFrameworks>$(DefaultTestTargetFrameworks)</TargetFrameworks>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
|
|
|
|||
Loading…
Reference in a new issue