How to get the path of the base directory in C#

1 Answer

0 votes
using System;

class Program
{
    static void Main() {
        var path = System.AppContext.BaseDirectory; 

        Console.Write(path);
    }
}




/*
run:

/home/

*/

 



answered May 2, 2022 by avibootz

Related questions

1 answer 166 views
1 answer 242 views
1 answer 111 views
2 answers 213 views
1 answer 123 views
2 answers 183 views
...