From 46730347373b27ec8bedb6182d927a5509ff8b37 Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Fri, 8 Dec 2023 12:39:58 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=AF=E5=BE=84=E6=B5=8B=E8=AF=95windows=20?= =?UTF-8?q?=20=E5=92=8Clinux?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRaCIS.Core.API/Progranm.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/IRaCIS.Core.API/Progranm.cs b/IRaCIS.Core.API/Progranm.cs index 9fab8adb1..7143b8724 100644 --- a/IRaCIS.Core.API/Progranm.cs +++ b/IRaCIS.Core.API/Progranm.cs @@ -293,9 +293,13 @@ try Log.Logger.Warning($"ContentRootPath:{env.ContentRootPath}"); - Log.Logger.Warning($"ContentRootPath——GetParent:{Path.GetDirectoryName(env.ContentRootPath)}"); + string parentDirectory = Path.GetFullPath(Path.Combine(env.ContentRootPath, "..")); - Log.Logger.Warning($"ContentRootPath——xx:{Path.GetDirectoryName(Path.GetDirectoryName(env.ContentRootPath))}"); + + Log.Logger.Warning($"ContentRootPath——parentDirectory:{parentDirectory}"); + + //Log.Logger.Warning($"ContentRootPath——GetParent:{Directory.GetParent(env.ContentRootPath).Parent.FullName}"); + //Log.Logger.Warning($"ContentRootPath——xx:{Path.GetDirectoryName(Path.GetDirectoryName(env.ContentRootPath))}"); app.Run();