C#获取当前程序运行的文件路径

string path=Path.Combine(AppDomain.CurrentDomain.BaseDirectory);
            //string path = "E://holiday.json";
            path = Path.Combine(path+"\holiday.json");
            string fileContent = GetFileContent(path);

  

原文地址:https://www.cnblogs.com/gao109214/p/11162442.html