摘要:
string dataDir = AppDomain.CurrentDomain.BaseDirectory;if(dataDir.EndsWith(@"\bin\Debug\) || dataDir.EndsWith(@"\bin\Release\")){ dataDir = System.IO.Directory.GetParent(dataDir).Parent.Parent.FullName;} string FileDir = dataDir; string hzm = System.IO.Path.GetExtension(FileDir); 阅读全文