fix build

This commit is contained in:
Pascal
2025-10-15 11:34:45 +02:00
parent 05c5b7f0ec
commit 7ed125bffe
4 changed files with 6 additions and 2 deletions

View File

@@ -4,6 +4,7 @@
<TargetFrameworks>net8.0;netstandard2.0</TargetFrameworks> <TargetFrameworks>net8.0;netstandard2.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<LangVersion>latest</LangVersion>
</PropertyGroup> </PropertyGroup>
<PropertyGroup> <PropertyGroup>

View File

@@ -2,5 +2,5 @@
public class UpdateClientEventArgs(UpdateClient client) : EventArgs public class UpdateClientEventArgs(UpdateClient client) : EventArgs
{ {
public UpdateClient Client { get; init; } = client; public UpdateClient Client { get; } = client;
} }

View File

@@ -40,7 +40,9 @@ public static class Utils
if (triesLeft == 0 && File.Exists(destFileName)) if (triesLeft == 0 && File.Exists(destFileName))
{ {
oldFile = destFileName + ".old"; oldFile = destFileName + ".old";
File.Move(destFileName, oldFile, true); if (File.Exists(oldFile))
File.Delete(oldFile);
File.Move(destFileName, oldFile);
triesLeft++; triesLeft++;
Thread.Sleep(100); Thread.Sleep(100);
} }

View File

@@ -4,6 +4,7 @@
<TargetFrameworks>net8.0;netstandard2.0</TargetFrameworks> <TargetFrameworks>net8.0;netstandard2.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<LangVersion>latest</LangVersion>
</PropertyGroup> </PropertyGroup>
<PropertyGroup> <PropertyGroup>