Skip to content

Commit ffb8fa4

Browse files
committed
Use dotnet 9 if 10 is not available in example projects
1 parent d66b5ae commit ffb8fa4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

examples/project/Directory.Build.targets

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
<Project>
22
<PropertyGroup Condition="'$(NETCoreAppMaximumVersion)' != ''">
3+
<TargetFrameworks Condition="$([MSBuild]::VersionGreaterThanOrEquals('$(NETCoreAppMaximumVersion)', '9.0')) AND $([MSBuild]::VersionLessThan('$(NETCoreAppMaximumVersion)', '10.0'))"
4+
>net9.0</TargetFrameworks
5+
>
36
<TargetFrameworks Condition="$([MSBuild]::VersionLessThan('$(NETCoreAppMaximumVersion)', '9.0'))"
47
>net8.0</TargetFrameworks
58
>

0 commit comments

Comments
 (0)