From fd96271bbecd732150a66a923753ec20353cd940 Mon Sep 17 00:00:00 2001 From: "OmegaLeo@Pebblehost" Date: Wed, 10 Dec 2025 21:24:19 +0000 Subject: [PATCH] Fixed web project --- .gitignore | 11 ++++++++++- .../OmegaLeo.HelperLib.Changelog.csproj | 10 +++++++--- OmegaLeo.HelperLib.Web/Controllers/HomeController.cs | 12 +----------- 3 files changed, 18 insertions(+), 15 deletions(-) diff --git a/.gitignore b/.gitignore index add57be..cdb51ce 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,13 @@ bin/ obj/ /packages/ riderModule.iml -/_ReSharper.Caches/ \ No newline at end of file +/_ReSharper.Caches/ +/.vs +<<<<<<< Updated upstream +/OmegaLeo.HelperLib.Web +======= +/OmegaLeo.HelperLib.Web/.config +/OmegaLeo.HelperLib.Web/Properties/PublishProfiles +/OmegaLeo.HelperLib.Web/publish +>>>>>>> Stashed changes +/OmegaLeo.HelperLib.Web/OmegaLeo.HelperLib.Web.csproj.user diff --git a/OmegaLeo.HelperLib.Changelog/OmegaLeo.HelperLib.Changelog.csproj b/OmegaLeo.HelperLib.Changelog/OmegaLeo.HelperLib.Changelog.csproj index dd3e7ad..965ef27 100644 --- a/OmegaLeo.HelperLib.Changelog/OmegaLeo.HelperLib.Changelog.csproj +++ b/OmegaLeo.HelperLib.Changelog/OmegaLeo.HelperLib.Changelog.csproj @@ -13,9 +13,13 @@ - - - + + + + + + + diff --git a/OmegaLeo.HelperLib.Web/Controllers/HomeController.cs b/OmegaLeo.HelperLib.Web/Controllers/HomeController.cs index 9274ef3..42a2e8f 100644 --- a/OmegaLeo.HelperLib.Web/Controllers/HomeController.cs +++ b/OmegaLeo.HelperLib.Web/Controllers/HomeController.cs @@ -115,16 +115,6 @@ public class HomeController : Controller static string GetSolutionRoot() { - string dir = AppContext.BaseDirectory; - - while (!string.IsNullOrEmpty(dir)) - { - if (Directory.GetFiles(dir, "*.sln").Length > 0) - return dir; - - dir = Directory.GetParent(dir)?.FullName; - } - - throw new Exception("Solution root not found."); + return Assembly.GetEntryAssembly().Location; } }