获取父目录修改方法
This commit is contained in:
@@ -292,9 +292,8 @@ try
|
||||
|
||||
Log.Logger.Warning($"ContentRootPath:{env.ContentRootPath}");
|
||||
|
||||
Log.Logger.Warning($"ContentRootPath——GetParent-notriem:{Directory.GetParent(env.ContentRootPath).FullName}");
|
||||
|
||||
Log.Logger.Warning($"ContentRootPath——GetParent:{Directory.GetParent(env.ContentRootPath.TrimEnd('\\')).FullName}");
|
||||
Log.Logger.Warning($"ContentRootPath——GetParent:{Path.GetDirectoryName(env.ContentRootPath)}");
|
||||
|
||||
app.Run();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user