environment get current directory c# code example
Example 1: get current directory c# \
System.IO.Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);
Example 2: get execution directory c#
string logsDirectory = Path.Combine(Environment.CurrentDirectory, "logs");