mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-06 17:10:13 +00:00
.NET 5.0 (#1999)
* Initial work * Fix CIs * Fix warnings * Update .travis.yml * Update dockerfiles * Update libraries to .NET 5.0 * Misc * Remove workaround for #1812 * Update cc.sh * CI updates * CI updates * Update .travis.yml
This commit is contained in:
committed by
GitHub
parent
9a248858a5
commit
35f4651ed6
@@ -27,6 +27,7 @@ using System.IO;
|
||||
using System.IO.Compression;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Security.Cryptography;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
@@ -337,7 +338,7 @@ namespace ArchiSteamFarm {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (OS.IsUnix) {
|
||||
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux) || RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) {
|
||||
string executable = Path.Combine(SharedInfo.HomeDirectory, SharedInfo.AssemblyName);
|
||||
|
||||
if (File.Exists(executable)) {
|
||||
@@ -436,6 +437,10 @@ namespace ArchiSteamFarm {
|
||||
throw new ArgumentNullException(nameof(sender) + " || " + nameof(e));
|
||||
}
|
||||
|
||||
if (string.IsNullOrEmpty(e.Name)) {
|
||||
throw new ArgumentNullException(nameof(e.Name));
|
||||
}
|
||||
|
||||
await OnChangedFile(e.Name, e.FullPath).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
@@ -498,6 +503,10 @@ namespace ArchiSteamFarm {
|
||||
throw new ArgumentNullException(nameof(sender) + " || " + nameof(e));
|
||||
}
|
||||
|
||||
if (string.IsNullOrEmpty(e.Name)) {
|
||||
throw new ArgumentNullException(nameof(e.Name));
|
||||
}
|
||||
|
||||
await OnCreatedFile(e.Name, e.FullPath).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
@@ -604,6 +613,10 @@ namespace ArchiSteamFarm {
|
||||
throw new ArgumentNullException(nameof(sender) + " || " + nameof(e));
|
||||
}
|
||||
|
||||
if (string.IsNullOrEmpty(e.Name)) {
|
||||
throw new ArgumentNullException(nameof(e.Name));
|
||||
}
|
||||
|
||||
await OnDeletedFile(e.Name, e.FullPath).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
@@ -700,6 +713,10 @@ namespace ArchiSteamFarm {
|
||||
throw new ArgumentNullException(nameof(sender) + " || " + nameof(e));
|
||||
}
|
||||
|
||||
if (string.IsNullOrEmpty(e.OldName) || string.IsNullOrEmpty(e.Name)) {
|
||||
throw new ArgumentNullException(nameof(e.OldName) + " || " + nameof(e.Name));
|
||||
}
|
||||
|
||||
await OnDeletedFile(e.OldName, e.OldFullPath).ConfigureAwait(false);
|
||||
await OnCreatedFile(e.Name, e.FullPath).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user