diff --git a/src/Core/WinSWCore/Configuration/YamlConfiguration.cs b/src/Core/WinSWCore/Configuration/YamlConfiguration.cs index a6de961..711c222 100644 --- a/src/Core/WinSWCore/Configuration/YamlConfiguration.cs +++ b/src/Core/WinSWCore/Configuration/YamlConfiguration.cs @@ -290,6 +290,7 @@ namespace WinSW.Configuration { if (!int.TryParse(this.ZipOlderThanNumDaysYamlLog, out int zipolderthannumdaysValue)) { +//FIXME: Remove the build env specific warning suppression from the codebase #pragma warning disable S2372 // Exceptions should not be thrown from property getters throw new InvalidDataException("Roll-Size-Time Based rolling policy is specified but zipOlderThanNumDays does not match the int format found in configuration XML."); #pragma warning restore S2372 // Exceptions should not be thrown from property getters