From 499bf1ebdde1a77e13680c1cfee3dae99aa2d4ec Mon Sep 17 00:00:00 2001 From: Matthew Erbs Date: Fri, 22 Jan 2016 15:33:40 +1000 Subject: [PATCH] Corrected issue with namespace conflict with System.IO.File --- .../Sinks/RollingFile/RollingFileSink.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Serilog.Sinks.RollingFile/Sinks/RollingFile/RollingFileSink.cs b/src/Serilog.Sinks.RollingFile/Sinks/RollingFile/RollingFileSink.cs index 7c7de9502..7f5a9605e 100644 --- a/src/Serilog.Sinks.RollingFile/Sinks/RollingFile/RollingFileSink.cs +++ b/src/Serilog.Sinks.RollingFile/Sinks/RollingFile/RollingFileSink.cs @@ -191,7 +191,7 @@ void ApplyRetentionPolicy(string currentFilePath) var fullPath = Path.Combine(_roller.LogFileDirectory, obsolete); try { - File.Delete(fullPath); + System.IO.File.Delete(fullPath); } catch (Exception ex) {