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