Answers for "get root directory in c#"

C#
0

c# get application root path directory

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

        }
Posted by: Guest on January-05-2022

C# Answers by Framework

Browse Popular Code Answers by Language