get current directory in console application c# code example Example: get application path c# System.Reflection.Assembly.GetExecutingAssembly().Location