Skip to content

Commit 0ffed55

Browse files
committed
Define OR_GREATER constants in msbuild
1 parent 863bf91 commit 0ffed55

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Directory.Build.props

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,10 @@
3535
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
3636
<EmbedUntrackedSources>true</EmbedUntrackedSources>
3737
</PropertyGroup>
38+
39+
<PropertyGroup>
40+
<NET6_0_OR_GREATER Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)','net6.0'))">true</NET6_0_OR_GREATER>
41+
<NET9_0_OR_GREATER Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)','net9.0'))">true</NET9_0_OR_GREATER>
42+
<NET10_0_OR_GREATER Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)','net10.0'))">true</NET10_0_OR_GREATER>
43+
</PropertyGroup>
3844
</Project>

0 commit comments

Comments
 (0)