Skip to content

Commit cb07ab6

Browse files
committed
add support for importing tasks on .NET 7.0
1 parent b8d99a4 commit cb07ab6

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
@@ -35,6 +35,10 @@ SPDX-License-Identifier: MIT
3535
<!-- .NET 6.x -->
3636
@(TaskFiles->WithMetadataValue('TargetFramework', 'net6.0')->'%(ImportLine)', '%0D%0A ')
3737
</ImportGroup>
38+
<ImportGroup Condition=" '%24(MSBuildRuntimeType)' == 'Core' and %24([System.Runtime.InteropServices.RuntimeInformation]::FrameworkDescription.StartsWith('.NET 7.')) ">
39+
<!-- .NET 7.x -->
40+
@(TaskFiles->WithMetadataValue('TargetFramework', 'net6.0')->'%(ImportLine)', '%0D%0A ')
41+
</ImportGroup>
3842
</Project>
3943
]]></GenerateMSBuildTargetsFileLines>
4044
</PropertyGroup>

0 commit comments

Comments
 (0)