Skip to content

Commit 8c424cf

Browse files
committed
feat: Added Trimmable property group.
1 parent 81af4aa commit 8c424cf

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/OpenAI.csproj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,12 @@
8080
<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="6.0.1" />
8181
<PackageReference Include="System.Memory.Data" Version="9.0.0" />
8282
</ItemGroup>
83+
84+
<PropertyGroup Label="Trimmable" Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))">
85+
<IsAotCompatible>true</IsAotCompatible>
86+
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
87+
<IsTrimmable>true</IsTrimmable>
88+
<SuppressTrimAnalysisWarnings>false</SuppressTrimAnalysisWarnings>
89+
<TrimmerSingleWarn>false</TrimmerSingleWarn>
90+
</PropertyGroup>
8391
</Project>

0 commit comments

Comments
 (0)