Skip to content

Commit 4f1bdb4

Browse files
committed
fix build warning-as-error which is suddenly appearing on net6.0
IsAotCompatible not supported on net6.0
1 parent 3b5134d commit 4f1bdb4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Renci.SshNet/Renci.SshNet.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@
3131
</PropertyGroup>
3232

3333
<PropertyGroup Condition=" $([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0')) ">
34+
<IsTrimmable>true</IsTrimmable>
35+
</PropertyGroup>
36+
37+
<PropertyGroup Condition=" $([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0')) ">
3438
<IsAotCompatible>true</IsAotCompatible>
3539
</PropertyGroup>
3640

0 commit comments

Comments
 (0)