EN
C# / .NET - get current working directory
14 points
In C# / .NET it is possible to get current working directory path in the following way:
xxxxxxxxxx
1
string directory = Directory.GetCurrentDirectory();
2
3
Console.WriteLine("Current working directory: " + directory);
Output:
xxxxxxxxxx
1
Current working directory: C:\Project\Test\bin\Debug