Alternativ.Defaults.GetProjectPath C# (CSharp) Method

GetProjectPath() public static method

Ermittelt den Pfad zum Projektverzeichnis
public static GetProjectPath ( ) : string
return string
        public static string GetProjectPath()
        {
            string projectPath = Environment.CurrentDirectory;

            for (int i = 0; i < 2; i++)
            {
                projectPath = System.IO.Path.GetDirectoryName(projectPath);
            }
            return projectPath;
        }