1.读取通过 AppDomain 方法
string basePath = AppDomain.CurrentDomain.BaseDirectory;
string keyPath = string.Format("{0}\{1}.xml", basePath, "Key");
var content=File.ReadAllText(keyPath);
1.读取通过 AppDomain 方法
string basePath = AppDomain.CurrentDomain.BaseDirectory;
string keyPath = string.Format("{0}\{1}.xml", basePath, "Key");
var content=File.ReadAllText(keyPath);