📅  最后修改于: 2022-03-11 14:49:19.635000             🧑  作者: Mango
public static string GetApplicationRoot()
{
var exePath = new Uri(System.Reflection.
Assembly.GetExecutingAssembly().CodeBase).LocalPath;
return new FileInfo(exePath).DirectoryName;
}