using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication2
{
class Program
{
static void Main(string[] args)
{
// use Reflection to get the exxecuting assembl path
string path = System.Reflection.Assembly.GetExecutingAssembly().Location;
// Pass that the Path.GetDirectoryName
Console.WriteLine(Path.GetDirectoryName(path));
Console.ReadKey();
}
}
}This Code snippet for finding the console application's path.
