Skip to content

Commit 13c76c8

Browse files
committed
add support for .NET 8.0
1 parent a4e157b commit 13c76c8

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
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
@@ -39,6 +39,10 @@ SPDX-License-Identifier: MIT
3939
<!-- .NET 7.x -->
4040
@(TaskFiles->WithMetadataValue('TargetFramework', 'net6.0')->'%(ImportLine)', '%0D%0A ')
4141
</ImportGroup>
42+
<ImportGroup Condition=" '%24(MSBuildRuntimeType)' == 'Core' and %24([System.Runtime.InteropServices.RuntimeInformation]::FrameworkDescription.StartsWith('.NET 8.')) ">
43+
<!-- .NET 8.x -->
44+
@(TaskFiles->WithMetadataValue('TargetFramework', 'net8.0')->'%(ImportLine)', '%0D%0A ')
45+
</ImportGroup>
4246
</Project>
4347
]]></GenerateMSBuildTargetsFileLines>
4448
</PropertyGroup>

src/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ SPDX-License-Identifier: MIT
44
-->
55
<Project Sdk="Microsoft.NET.Sdk">
66
<PropertyGroup>
7-
<TargetFrameworks>net6.0;netcoreapp3.1</TargetFrameworks>
7+
<TargetFrameworks>net8.0;net6.0;netcoreapp3.1</TargetFrameworks>
88
<RootNamespace>Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks</RootNamespace>
99
<VersionPrefix>1.2.2</VersionPrefix>
1010
<VersionSuffix></VersionSuffix>

src/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/private/Smdn.Reflection.ReverseGenerating.ListApi.Core.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ SPDX-License-Identifier: MIT
44
-->
55
<Project Sdk="Microsoft.NET.Sdk">
66
<PropertyGroup>
7-
<TargetFrameworks>net6.0;netcoreapp3.1</TargetFrameworks>
7+
<TargetFrameworks>net8.0;net6.0;netcoreapp3.1</TargetFrameworks>
88
</PropertyGroup>
99

1010
<Import Project="..\..\Smdn.Reflection.ReverseGenerating.ListApi.Core\Smdn.Reflection.ReverseGenerating.ListApi.Core.Common.props" />

0 commit comments

Comments
 (0)