From aa8315b68df22a8365e73f35abb58689a89d59c4 Mon Sep 17 00:00:00 2001 From: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com> Date: Tue, 16 May 2023 01:56:28 +0300 Subject: [PATCH] Clean up --- CliFx/CliApplicationBuilder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CliFx/CliApplicationBuilder.cs b/CliFx/CliApplicationBuilder.cs index ccd2761..4e6fd04 100644 --- a/CliFx/CliApplicationBuilder.cs +++ b/CliFx/CliApplicationBuilder.cs @@ -259,7 +259,7 @@ public partial class CliApplicationBuilder // If the process path has the same name and parent directory as the entry assembly path, // but different extension, it's a framework-dependent .NET Core app launched through the apphost. if (PathEx.AreEqual(Path.ChangeExtension(entryAssemblyFilePath, "exe"), processFilePath) || - PathEx.AreEqual(Path.ChangeExtension(entryAssemblyFilePath, ""), processFilePath)) + PathEx.AreEqual(Path.GetFileNameWithoutExtension(entryAssemblyFilePath), processFilePath)) { return Path.GetFileNameWithoutExtension(entryAssemblyFilePath); }