Skip to content

Commit

Permalink
Update to .NET 5 and SSH.NET 2020.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottRFrost committed Feb 18, 2021
1 parent cb22496 commit 5a50b14
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
4 changes: 1 addition & 3 deletions src/SimpleSFTPSyncCore/SimpleSFTPSync.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ public void StartRun()
// Check for Rars or MKVs
if (success)
{

syncFile.DateDownloaded = DateTime.Now.ToString();
lock (dbLock)
{
Expand Down Expand Up @@ -293,7 +292,6 @@ public void MoveFiles(List<string> mkvs, bool CopyInsteadOfMove = false)
File.Move(mkv, filePath);
Log("Moved Successfully");
}

}
}
else
Expand Down Expand Up @@ -465,7 +463,7 @@ public void Log(string logText)
/// Show text on window title only, do not log to file
/// </summary>
/// <param name="statusText">Text to display</param>
public void Status(string statusText)
public static void Status(string statusText)
{
Console.Title = statusText;
}
Expand Down
16 changes: 8 additions & 8 deletions src/SimpleSFTPSyncCore/SimpleSFTPSyncCore.csproj
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<VersionPrefix>3.0.1</VersionPrefix>
<TargetFramework>netcoreapp3.0</TargetFramework>
<VersionPrefix>5.0.0</VersionPrefix>
<TargetFramework>net5.0</TargetFramework>
<AssemblyName>SimpleSFTPSyncCore</AssemblyName>
<OutputType>Exe</OutputType>
<PackageId>SimpleSFTPSyncCore</PackageId>
<RuntimeIdentifiers>win10-x64</RuntimeIdentifiers>
<PublishTrimmed>true</PublishTrimmed>
<RuntimeFrameworkVersion>3.0.1</RuntimeFrameworkVersion>
<RuntimeFrameworkVersion>5.0.0</RuntimeFrameworkVersion>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
<Version>3.0.1</Version>
<Version>5.0.0</Version>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand All @@ -29,14 +29,14 @@

<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="3.1.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="3.1.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="5.0.3" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="5.0.3" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite.Design" Version="1.1.6" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="3.1.0">
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="5.0.3">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
<PackageReference Include="SSH.NET" Version="2016.1.0" />
<PackageReference Include="SSH.NET" Version="2020.0.1" />
</ItemGroup>
</Project>
4 changes: 2 additions & 2 deletions src/SimpleSFTPSyncCore/SimpleSFTPSyncCoreContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ 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)
{
modelBuilder.Entity<SyncFile>(entity =>
{
entity.HasIndex(e => e.RemotePath)
.HasName("sqlite_autoindex_SyncFile_2")
.HasDatabaseName("sqlite_autoindex_SyncFile_2")
.IsUnique();
entity.Property(e => e.SyncFileId).HasColumnName("SyncFileID");
Expand Down

0 comments on commit 5a50b14

Please sign in to comment.