79118017

Date: 2024-10-23 13:06:56
Score: 2.5
Natty:
Report link

This is not an answer. The above answers above do not seem to work in .Net8 hence my request for help.

I have upgraded to .NET 8. Have also upgraded Serilog.AspNetCore(8.0.3) Serilog.Extensions.Hosting (8.0.0) But I get the error described above.

'IWebHostBuilder' does not contain a definition for 'UseSerilog' 

my code: " webBuilder.UseStartup() .UseConfiguration(Configuration) .UseSerilog();"

Reasons:
  • Blacklisted phrase (1): not an answer
  • RegEx Blacklisted phrase (1): I get the error
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Alan Murray