using platform specifier to ignore apple platforms in CI

This commit is contained in:
Andy Pack 2023-01-27 23:11:59 +00:00
parent b586d89354
commit b895a21fbd
Signed by: sarsoo
GPG Key ID: A55BA3536A5E0ED7
3 changed files with 5 additions and 3 deletions

View File

@ -20,7 +20,7 @@ jobs:
- name: Install Dependencies
run: dotnet restore Selector.Core.sln
- name: Build
run: dotnet build --configuration Release --framework net7.0 --no-restore Selector.Core.sln
run: dotnet build --configuration Debug --no-restore Selector.Core.sln
- name: Test
run: dotnet test --no-restore --verbosity normal Selector.Core.sln

View File

@ -1,7 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net7.0;net7.0-ios;net7.0-maccatalyst</TargetFrameworks>
<TargetFrameworks>net7.0</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net7.0-ios;net7.0-maccatalyst</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

View File

@ -1,7 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net7.0;net7.0-ios;net7.0-maccatalyst</TargetFrameworks>
<TargetFrameworks>net7.0</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net7.0-ios;net7.0-maccatalyst</TargetFrameworks>
<EnableDefaultCompileItems>true</EnableDefaultCompileItems>
<LangVersion>latest</LangVersion>
</PropertyGroup>