Skip to content

Commit 8823fcf

Browse files
update nuget packages
1 parent 9e1f76b commit 8823fcf

3 files changed

Lines changed: 10 additions & 18 deletions

File tree

FileSyncApp/FileSyncApp.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77

88
<ItemGroup>
99
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
10-
<PackageReference Include="Serilog" Version="3.0.1" />
11-
<PackageReference Include="Serilog.Extensions.Logging" Version="7.0.0" />
12-
<PackageReference Include="Serilog.Sinks.Async" Version="1.5.0" />
13-
<PackageReference Include="Serilog.Sinks.Console" Version="4.1.0" />
14-
<PackageReference Include="Serilog.Sinks.File" Version="5.0.0" />
10+
<PackageReference Include="Serilog" Version="4.1.0" />
11+
<PackageReference Include="Serilog.Extensions.Logging" Version="8.0.0" />
12+
<PackageReference Include="Serilog.Sinks.Async" Version="2.1.0" />
13+
<PackageReference Include="Serilog.Sinks.Console" Version="6.0.0" />
14+
<PackageReference Include="Serilog.Sinks.File" Version="6.0.0" />
1515
<PackageReference Include="System.Runtime.InteropServices" Version="4.3.0" />
1616
</ItemGroup>
1717

FileSyncApp/Program.cs

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,15 @@
11
using FileSyncLibNet.Commons;
22
using FileSyncLibNet.FileCleanJob;
33
using FileSyncLibNet.FileSyncJob;
4-
using FileSyncLibNet.Logger;
54
using FileSyncLibNet.SyncProviders;
65
using Microsoft.Extensions.Logging;
76
using Newtonsoft.Json;
87
using Serilog;
98
using Serilog.Core;
109
using System;
1110
using System.Collections.Generic;
12-
using System.Diagnostics;
13-
using System.IO;
1411
using System.Linq;
1512
using System.Net;
16-
using System.Reflection;
17-
using System.Runtime.InteropServices;
18-
using System.Runtime.InteropServices.ComTypes;
19-
using System.Security.Cryptography.X509Certificates;
20-
using System.Text;
2113
using System.Threading;
2214
using File = System.IO.File;
2315

@@ -35,7 +27,7 @@ public static void Main(string[] args)
3527
{
3628
ConfigureLogger();
3729
log = LoggerFactory.CreateLogger("FileSyncAppMain");
38-
if (null!=args && args.Length > 0)
30+
if (null != args && args.Length > 0)
3931
{
4032
if (args.Contains("debug"))
4133
{
@@ -46,8 +38,8 @@ public static void Main(string[] args)
4638
RunProgram();
4739

4840
}
49-
50-
41+
42+
5143
static void RunProgram()
5244
{
5345
log.LogInformation("FileSyncApp - synchronizing folders and clean them up");
@@ -103,7 +95,7 @@ static void RunProgram()
10395
foreach (var jobOption in readJobOptions)
10496
{
10597

106-
jobOption.Value.Logger = LoggerFactory.CreateLogger(jobOption.Key);
98+
jobOption.Value.Logger = LoggerFactory.CreateLogger(jobOption.Key);
10799
Jobs.Add(jobOption.Key, FileSyncJob.CreateJob(jobOption.Value));
108100
}
109101
JobsReady?.Invoke(null, EventArgs.Empty);

FileSyncLibNet/FileSyncLibNet.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<Description>A library to easily backup or sync 2 folders either once or in a given interval.</Description>
1313
</PropertyGroup>
1414
<ItemGroup>
15-
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.1" />
15+
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.2" />
1616
<PackageReference Include="RoboSharp" Version="1.5.3" />
1717
<PackageReference Include="SMBLibrary" Version="1.5.3.5" />
1818
<PackageReference Include="SSH.NET" Version="2024.1.0" />

0 commit comments

Comments
 (0)