Skip to content

Commit 713fc92

Browse files
authored
enabled publish optimization (trimming and AoT compat) (#5)
1 parent 9710503 commit 713fc92

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/ClassLib.csproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netstandard2.0</TargetFramework>
4+
<TargetFrameworks>netstandard2.0;net8.0</TargetFrameworks>
55
<LangVersion>12.0</LangVersion>
66
<Nullable>enable</Nullable>
77

8+
<IsTrimmable Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))">true</IsTrimmable>
9+
<IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net7.0'))">true</IsAotCompatible>
10+
811
<!-- Package stuff -->
912
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1013
<PackageLicenseFile Condition="$(PackageLicenseExpression) == ''">LICENSE</PackageLicenseFile>

0 commit comments

Comments
 (0)