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