using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HH.WCS.Mobox3.AnGang.Helpers { public class PathHelper { /// /// 项目文件夹与Debug/Release文件的相对路径(私有常量) /// const string RELATIVE_PATH = "../.."; /// /// GetProjectDirectory:获取项目文件夹路径 /// public static string GetProjDir(string filepath = "./") { return Path.GetFullPath(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, RELATIVE_PATH, filepath)); } } }