Closed
Description
My project has Serilog.AspNetCore as a dependency, and I wish to use the ConsoleLoggerConfigurationExtensions
extension methods from the Serilog.Sinks.Console
package that is referenced within Serilog.AspNetCore
package. However, I get this build error message:
The type 'ConsoleLoggerConfigurationExtensions' exists in both
'Serilog.Sinks.Console, Version=3.1.1.0, Culture=neutral
and 'Serilog.Sinks.Debug, Version=1.0.1.0, Culture=neutral
Looking at both GitHub repos Serilog.Sinks.Debug and Serilog.Sinks.Console:
Both projects declare a class named ConsoleLoggerConfigurationExtensions
, and I'm wondering how Serilog.AspNetCore
compiled in the first place.
Relevant package, tooling and runtime versions
Using net5.0 with Serilog.AspNetCore 3.4.0
Note: I reported this issue in this repo because the issue wouldn't present itself individually in either package, only in the dependency of both packages.