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 181 views
1 answer 270 views
1 answer 127 views
2 answers 237 views
1 answer 142 views
2 answers 204 views
...