Answers for "c# get application root path directory"

C#
1

get application path c#

System.Reflection.Assembly.GetExecutingAssembly().Location
Posted by: Guest on September-11-2020
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