Skip to content

Commit 1a841b5

Browse files
committed
Don't run net472 tests on linux
1 parent 2c7b4d4 commit 1a841b5

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Directory.Build.props

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
<Project>
22

3+
<PropertyGroup>
4+
<IsMac>$([MSBuild]::IsOSPlatform('OSX'))</IsMac>
5+
<IsWindows>$([MSBuild]::IsOSPlatform('Windows'))</IsWindows>
6+
<IsLinux>$([MSBuild]::IsOSPlatform('Linux'))</IsLinux>
7+
</PropertyGroup>
8+
39
<PropertyGroup>
410
<ReleaseVersion>2.5.0.0</ReleaseVersion>
511
<RepositoryUrl>https://github.com/mono/taglib-sharp</RepositoryUrl>

tests/TaglibSharp.Tests/TaglibSharp.Tests.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>$(ExeTargetFrameworks)</TargetFrameworks>
4+
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
5+
<TargetFrameworks Condition="'$(IsLinux)' != 'true'">net472;$(TargetFrameworks)</TargetFrameworks>
56
<EnableMSTestRunner>true</EnableMSTestRunner>
67
<OutputType>Exe</OutputType>
78
<TestingPlatformDotnetTestSupport>true</TestingPlatformDotnetTestSupport>

0 commit comments

Comments
 (0)