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:
parent
63df4517fa
commit
849809771d
1 changed files with 3 additions and 7 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue