fix build
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user