Skip to content

Commit 3e20fb6

Browse files
committed
add support for .NET 9
1 parent 99197cf commit 3e20fb6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/GenerateMSBuildTargetsFile.targets

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ SPDX-License-Identifier: MIT
2727
<!-- .NET 8.x -->
2828
@(TaskFiles->WithMetadataValue('TargetFramework', 'net8.0')->'%(ImportLine)', '%0D%0A ')
2929
</ImportGroup>
30+
<ImportGroup Condition=" '%24(MSBuildRuntimeType)' == 'Core' and %24([System.Runtime.InteropServices.RuntimeInformation]::FrameworkDescription.StartsWith('.NET 9.')) ">
31+
<!-- .NET 9.x -->
32+
@(TaskFiles->WithMetadataValue('TargetFramework', 'net8.0')->'%(ImportLine)', '%0D%0A ')
33+
</ImportGroup>
3034
</Project>
3135
]]></GenerateMSBuildTargetsFileLines>
3236
</PropertyGroup>

0 commit comments

Comments
 (0)