Skip to content

Commit

Permalink
Simplified Condition for Date/Time aliases (#2)
Browse files Browse the repository at this point in the history
* Simplified Condition for Date/Time aliases

* fixed: Switched to $(TargetFrameworkVersion)
  • Loading branch information
samtrion authored Nov 21, 2024
1 parent 635b97b commit 69ee4a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ProjectDefaults/build/ProjectDefaults.props
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<None Include="$(SolutionDir)..\src\icon.png" Pack="true" PackagePath="\"/>
</ItemGroup>

<ItemGroup Condition="$(TargetFramework.StartsWith('net6')) OR $(TargetFramework.StartsWith('net7')) OR $(TargetFramework.StartsWith('net8')) OR $(TargetFramework.StartsWith('net9'))">
<ItemGroup Condition="'$(TargetFrameworkVersion)' != '' and $([MSBuild]::VersionGreaterThanOrEquals($(TargetFrameworkVersion), '6.0'))">
<Using Include="System.DateOnly" Alias="Date" />
<Using Include="System.TimeOnly" Alias="Time" />
</ItemGroup>
Expand Down Expand Up @@ -96,4 +96,4 @@
Condition="'$(SolutionPath)' != '' And '$(SolutionPath)' != '*Undefined*' And !Exists('$(SolutionPath).DotSettings')"
SkipUnchangedFiles="true" />
</Target>
</Project>
</Project>

0 comments on commit 69ee4a2

Please sign in to comment.