From 5a50b14035d2e0a9cd4613712dbf228c7aacb8cd Mon Sep 17 00:00:00 2001 From: "Scott R. Frost" Date: Thu, 18 Feb 2021 10:35:13 -0500 Subject: [PATCH] Update to .NET 5 and SSH.NET 2020.0.1 --- src/SimpleSFTPSyncCore/SimpleSFTPSync.cs | 4 +--- src/SimpleSFTPSyncCore/SimpleSFTPSyncCore.csproj | 16 ++++++++-------- .../SimpleSFTPSyncCoreContext.cs | 4 ++-- 3 files changed, 11 insertions(+), 13 deletions(-) diff --git a/src/SimpleSFTPSyncCore/SimpleSFTPSync.cs b/src/SimpleSFTPSyncCore/SimpleSFTPSync.cs index adb16d1..a99a1cd 100644 --- a/src/SimpleSFTPSyncCore/SimpleSFTPSync.cs +++ b/src/SimpleSFTPSyncCore/SimpleSFTPSync.cs @@ -147,7 +147,6 @@ public void StartRun() // Check for Rars or MKVs if (success) { - syncFile.DateDownloaded = DateTime.Now.ToString(); lock (dbLock) { @@ -293,7 +292,6 @@ public void MoveFiles(List mkvs, bool CopyInsteadOfMove = false) File.Move(mkv, filePath); Log("Moved Successfully"); } - } } else @@ -465,7 +463,7 @@ public void Log(string logText) /// Show text on window title only, do not log to file /// /// Text to display - public void Status(string statusText) + public static void Status(string statusText) { Console.Title = statusText; } diff --git a/src/SimpleSFTPSyncCore/SimpleSFTPSyncCore.csproj b/src/SimpleSFTPSyncCore/SimpleSFTPSyncCore.csproj index 7d3d541..ac9c83a 100644 --- a/src/SimpleSFTPSyncCore/SimpleSFTPSyncCore.csproj +++ b/src/SimpleSFTPSyncCore/SimpleSFTPSyncCore.csproj @@ -1,18 +1,18 @@  - 3.0.1 - netcoreapp3.0 + 5.0.0 + net5.0 SimpleSFTPSyncCore Exe SimpleSFTPSyncCore win10-x64 true - 3.0.1 + 5.0.0 false false false - 3.0.1 + 5.0.0 @@ -29,14 +29,14 @@ - - + + - + all runtime; build; native; contentfiles; analyzers - + diff --git a/src/SimpleSFTPSyncCore/SimpleSFTPSyncCoreContext.cs b/src/SimpleSFTPSyncCore/SimpleSFTPSyncCoreContext.cs index 4dbc1a3..3cf49b0 100644 --- a/src/SimpleSFTPSyncCore/SimpleSFTPSyncCoreContext.cs +++ b/src/SimpleSFTPSyncCore/SimpleSFTPSyncCoreContext.cs @@ -6,7 +6,7 @@ public class SimpleSFTPSyncCoreContext : DbContext { protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { - optionsBuilder.UseSqlite(@"Filename=SimpleSFTPSyncCore.sqlite"); + optionsBuilder.UseSqlite("Filename=SimpleSFTPSyncCore.sqlite"); } protected override void OnModelCreating(ModelBuilder modelBuilder) @@ -14,7 +14,7 @@ protected override void OnModelCreating(ModelBuilder modelBuilder) modelBuilder.Entity(entity => { entity.HasIndex(e => e.RemotePath) - .HasName("sqlite_autoindex_SyncFile_2") + .HasDatabaseName("sqlite_autoindex_SyncFile_2") .IsUnique(); entity.Property(e => e.SyncFileId).HasColumnName("SyncFileID");