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
|
10.0.x
|
||||||
9.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
|
- name: 🔧 Set up Node.js
|
||||||
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
|
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
|
|
@ -45,4 +45,10 @@
|
||||||
<!-- Don't use x64 when running netfx test procs on Windows ARM -->
|
<!-- Don't use x64 when running netfx test procs on Windows ARM -->
|
||||||
<PreferNativeArm64>true</PreferNativeArm64>
|
<PreferNativeArm64>true</PreferNativeArm64>
|
||||||
</PropertyGroup>
|
</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>
|
</Project>
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFrameworks>net10.0;net9.0;net8.0;net472</TargetFrameworks>
|
<TargetFrameworks>$(DefaultTestTargetFrameworks)</TargetFrameworks>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<PublishAot Condition="'$(TargetFramework)' == 'net9.0'">true</PublishAot>
|
<PublishAot Condition="'$(TargetFramework)' == 'net9.0'">true</PublishAot>
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFrameworks>net10.0;net9.0;net8.0;net472</TargetFrameworks>
|
<TargetFrameworks>$(DefaultTestTargetFrameworks)</TargetFrameworks>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<AssemblyName>TestServer</AssemblyName>
|
<AssemblyName>TestServer</AssemblyName>
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFrameworks>net10.0;net9.0;net8.0;net472</TargetFrameworks>
|
<TargetFrameworks>$(DefaultTestTargetFrameworks)</TargetFrameworks>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue