Skip to content

Commit 42d75bc

Browse files
Drop net7.0 target (#1468)
* Drop net7.0 target .NET 7 is EOL since May. The only .NET 7 features we use are `ObjectDisposedException.ThrowIf` (moved to a throw helper) and some newer regex features. This feels a bit weird, but I suppose it is the expected course of action. * fix build warning-as-error which is suddenly appearing on net6.0 IsAotCompatible not supported on net6.0 --------- Co-authored-by: Wojciech Nagórski <wojtpl2@gmail.com>
1 parent d96b9eb commit 42d75bc

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/Renci.SshNet/Renci.SshNet.csproj

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<AssemblyName>Renci.SshNet</AssemblyName>
55
<Product>SSH.NET</Product>
66
<AssemblyTitle>SSH.NET</AssemblyTitle>
7-
<TargetFrameworks>net462;netstandard2.0;netstandard2.1;net6.0;net7.0;net8.0;net9.0</TargetFrameworks>
7+
<TargetFrameworks>net462;netstandard2.0;netstandard2.1;net6.0;net8.0;net9.0</TargetFrameworks>
88
</PropertyGroup>
99

1010
<PropertyGroup>
@@ -37,6 +37,10 @@
3737
</PropertyGroup>
3838

3939
<PropertyGroup Condition=" $([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0')) ">
40+
<IsTrimmable>true</IsTrimmable>
41+
</PropertyGroup>
42+
43+
<PropertyGroup Condition=" $([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0')) ">
4044
<IsAotCompatible>true</IsAotCompatible>
4145
</PropertyGroup>
4246

test/Renci.SshNet.Tests/Renci.SshNet.Tests.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net462;net6.0;net7.0;net8.0;net9.0</TargetFrameworks>
4+
<TargetFrameworks>net462;net6.0;net8.0;net9.0</TargetFrameworks>
55
</PropertyGroup>
66

77
<ItemGroup>

0 commit comments

Comments
 (0)