Answers for "web application root directory 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

Code answers related to "web application root directory c#"

C# Answers by Framework

Browse Popular Code Answers by Language