Update to .NET 5

This commit is contained in:
flash 2021-07-30 04:08:42 +02:00
parent 44b80b9707
commit cf732fac93
2 changed files with 3 additions and 2 deletions

View file

@ -2,7 +2,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.2</TargetFramework>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>
<ItemGroup>

View file

@ -146,7 +146,8 @@ namespace BackupManager {
Log($@"MariaDB dump done.");
File.Delete(sqldefaults);
if (Directory.Exists(Config.MisuzuPath)) {
if (!string.IsNullOrWhiteSpace(Config.MisuzuPath)
&& Directory.Exists(Config.MisuzuPath)) {
Log(@"Filesystem backup...");
string mszConfig = Path.Combine(Config.MisuzuPath, @"config/config.ini");