Serilog AOT has been fixed as of 4.3.0 (#434)

See https://github.com/serilog/serilog/releases/tag/v4.3.0
This commit is contained in:
Andy Gocke 2025-05-19 01:57:55 -07:00 • committed by GitHub
commit 849809771d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,21 +5,16 @@
<TargetFrameworks>net9.0;net8.0;net472</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<!--
Serilog AOT support regressed
<PublishAot>true</PublishAot>
-->
<PublishAot Condition="'$(TargetFramework)' == 'net9.0'">true</PublishAot>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Hosting" />
<PackageReference Include="Serilog" />
<PackageReference Include="Serilog.Extensions.Hosting" />
<PackageReference Include="Serilog.Sinks.Console" />
<PackageReference Include="Serilog.Sinks.Debug" />
<PackageReference Include="Serilog.Sinks.File" />
<RuntimeHostConfigurationOption
Include="Serilog.IsCompilerGeneratedCodeSupported"
Value="false" Trim="true" />
</ItemGroup>
<ItemGroup>