Cleanup the trim/aot analyzer hack

This commit is contained in:
Tyrrrz 2025-11-18 00:55:23 +02:00
parent 64ed6acf34
commit 0fc8124aa0
2 changed files with 6 additions and 4 deletions

View file

@ -5,9 +5,10 @@
<PublishTrimmed>true</PublishTrimmed> <PublishTrimmed>true</PublishTrimmed>
<CopyOutputSymbolsToPublishDirectory>false</CopyOutputSymbolsToPublishDirectory> <CopyOutputSymbolsToPublishDirectory>false</CopyOutputSymbolsToPublishDirectory>
</PropertyGroup> </PropertyGroup>
<!-- HACK: Disable trim warnings because they seem to break when the code contains C# 14 extension blocks -->
<PropertyGroup> <PropertyGroup>
<!-- HACK: Disable trim warnings because they seem to break when the code contains C# 14 extension blocks --> <EnableTrimAnalyzer>false</EnableTrimAnalyzer>
<NoWarn>$(NoWarn);AD0001</NoWarn> <EnableAotAnalyzer>false</EnableAotAnalyzer>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="CliFx" Version="2.3.6" /> <PackageReference Include="CliFx" Version="2.3.6" />

View file

@ -10,9 +10,10 @@
<PropertyGroup> <PropertyGroup>
<PublishMacOSBundle>false</PublishMacOSBundle> <PublishMacOSBundle>false</PublishMacOSBundle>
</PropertyGroup> </PropertyGroup>
<!-- HACK: Disable trim warnings because they seem to break when the code contains C# 14 extension blocks -->
<PropertyGroup> <PropertyGroup>
<!-- HACK: Disable trim warnings because they seem to break when the code contains C# 14 extension blocks --> <EnableTrimAnalyzer>false</EnableTrimAnalyzer>
<NoWarn>$(NoWarn);AD0001</NoWarn> <EnableAotAnalyzer>false</EnableAotAnalyzer>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<AvaloniaResource Include="..\favicon.ico" Link="favicon.ico" /> <AvaloniaResource Include="..\favicon.ico" Link="favicon.ico" />