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 164 views
1 answer 239 views
1 answer 110 views
2 answers 213 views
1 answer 122 views
2 answers 181 views
...