Skip to content

Method not found: Serilog.AppSettingsLoggerConfigurationExtensions.AppSettings #10

@Vrlwrox

Description

@Vrlwrox

My project references Serilog.Settings.AppSettings version 2.0.0. It also references another assembly that references the same version of Serilog.Settings.AppSettings. When I update my project to use Serilog.Settings.AppSettings version 2.1.0 I get the following exception when reading configuration:

Method not found: 'Serilog.LoggerConfiguration Serilog.AppSettingsLoggerConfigurationExtensions.AppSettings(Serilog.Configuration.LoggerSettingsConfiguration, System.String)'.

Note, I only update my project and not the other assembly (there the version stays at 2.0.0). Also, the other assembly is the one calling .ReadFrom.AppSettings().

Looking through code, I can see this is a result of adding an extra optional parameter to Serilog.LoggerConfiguration Serilog.AppSettingsLoggerConfigurationExtensions.AppSettings method.

// 2.0.0
public static LoggerConfiguration AppSettings(this LoggerSettingsConfiguration settingConfiguration, string settingPrefix = null);

// 2.0.1
public static LoggerConfiguration AppSettings(this LoggerSettingsConfiguration settingConfiguration, string settingPrefix = null, string filePath = null);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions