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:
Practical example
string directory = Directory.GetCurrentDirectory();
Console.WriteLine("Current working directory: " + directory);
Output:
Current working directory: C:\Project\Test\bin\Debug