📌  相关文章
📜  c# 获取应用程序根路径目录 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:19.635000             🧑  作者: Mango

代码示例2
public static string GetApplicationRoot()
        {
            var exePath = new Uri(System.Reflection.
            Assembly.GetExecutingAssembly().CodeBase).LocalPath;
            return new FileInfo(exePath).DirectoryName;

        }