调整获取项目根目录方式

This commit is contained in:
yubaolee 2022-03-03 23:13:33 +08:00
parent ac0dfef321
commit 44fd165dec

View File

@ -45,7 +45,7 @@ namespace Infrastructure.Utilities
return null; return null;
} }
if (directoryInfo.Exists if (directoryInfo.Exists
&& directoryInfo.GetDirectories().Where(x => x.Name.LastIndexOf(".Mvc") != -1).FirstOrDefault() != null) && directoryInfo.GetDirectories().Where(x => x.Name.LastIndexOf(".App") != -1).FirstOrDefault() != null)
{ {
return directoryInfo; return directoryInfo;
} }