FIX: Build logic and drop netstandard2.1 as it causes trimming issues.

This commit is contained in:
Amer Koleci
2023-09-05 12:17:15 +02:00
parent de454e710f
commit 81d6ea831b
14 changed files with 17 additions and 17 deletions

View File

@@ -2,16 +2,16 @@
<Project>
<!-- Settings that are only set for executables -->
<PropertyGroup Condition="'$(OutputType)' != 'Library' AND '$(UseWindowsForms)' != 'true'">
<PropertyGroup Condition="'$(OutputType)' != 'Library' ">
<PublishTrimmed>true</PublishTrimmed>
</PropertyGroup>
<!-- Settings that are only set for libraries -->
<PropertyGroup Condition=" '$(OutputType)' == 'Library' AND '$(TargetFramework)' != 'netstandard2.0' AND '$(TargetFramework)' != 'netstandard2.1' ">
<PropertyGroup Condition=" '$(OutputType)' == 'Library' AND $(TargetFramework.StartsWith('netstandard')) != 'True' ">
<IsTrimmable>true</IsTrimmable>
<EnableAotAnalyzer>true</EnableAotAnalyzer>
<EnableSingleFileAnalyzer>true</EnableSingleFileAnalyzer>
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
<IsTrimmable>true</IsTrimmable>
</PropertyGroup>
</Project>