fix build
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
<TargetFrameworks>net8.0;netstandard2.0</TargetFrameworks>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<LangVersion>latest</LangVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
|
||||
@@ -2,5 +2,5 @@
|
||||
|
||||
public class UpdateClientEventArgs(UpdateClient client) : EventArgs
|
||||
{
|
||||
public UpdateClient Client { get; init; } = client;
|
||||
public UpdateClient Client { get; } = client;
|
||||
}
|
||||
|
||||
@@ -40,7 +40,9 @@ public static class Utils
|
||||
if (triesLeft == 0 && File.Exists(destFileName))
|
||||
{
|
||||
oldFile = destFileName + ".old";
|
||||
File.Move(destFileName, oldFile, true);
|
||||
if (File.Exists(oldFile))
|
||||
File.Delete(oldFile);
|
||||
File.Move(destFileName, oldFile);
|
||||
triesLeft++;
|
||||
Thread.Sleep(100);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user