标签:
private string GetRootPath()
{
string strPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase);
if (strPath.StartsWith("file:"))
{
strPath = strPath.Substring(6);
}
return strPath;
}
标签:
原文地址:http://www.cnblogs.com/zhouminzhang/p/4329523.html