diff --git a/Sewer56.Update/Sewer56.Update.Packaging/Structures/ReleaseMetadata.cs b/Sewer56.Update/Sewer56.Update.Packaging/Structures/ReleaseMetadata.cs index 7003377..116b98b 100644 --- a/Sewer56.Update/Sewer56.Update.Packaging/Structures/ReleaseMetadata.cs +++ b/Sewer56.Update/Sewer56.Update.Packaging/Structures/ReleaseMetadata.cs @@ -106,6 +106,8 @@ public void Validate() } // Autoimplemented by R#. + + /// public bool Equals(ReleaseMetadataVerificationInfo? other) { if (ReferenceEquals(null, other)) return false; @@ -113,6 +115,7 @@ public bool Equals(ReleaseMetadataVerificationInfo? other) return string.Equals(FolderPath, other.FolderPath, StringComparison.OrdinalIgnoreCase); } + /// public override bool Equals(object? obj) { if (ReferenceEquals(null, obj)) return false; @@ -121,6 +124,7 @@ public override bool Equals(object? obj) return Equals((ReleaseMetadataVerificationInfo)obj); } + /// public override int GetHashCode() => StringComparer.OrdinalIgnoreCase.GetHashCode(FolderPath); } diff --git a/Sewer56.Update/Sewer56.Update/Hooks/Startup.cs b/Sewer56.Update/Sewer56.Update/Hooks/Startup.cs index 64c2af4..39c76f2 100644 --- a/Sewer56.Update/Sewer56.Update/Hooks/Startup.cs +++ b/Sewer56.Update/Sewer56.Update/Hooks/Startup.cs @@ -85,7 +85,7 @@ internal static ProcessStartInfo GetProcessStartInfo(string executablePath, stri var startInfo = new ProcessStartInfo { - WorkingDirectory = Path.GetDirectoryName(targetExecutablePath) + WorkingDirectory = Path.GetDirectoryName(targetExecutablePath)! }; // If updatee is an .exe file - start it directly