-
Couldn't load subscription status.
- Fork 25
Description
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);