//xml文件名,區(qū)分大小寫
StringBuilder xmlFileName = new StringBuilder();
xmlFileName.Append(assem.GetName().Name);
xmlFileName.Append(".");
xmlFileName.Append("plugin.xml");
string xml = string.Empty;
using (Stream xmlFileStream = assem.GetManifestResourceStream(xmlFileName.ToString()))
{
if (xmlFileStream != null)
{
using (StreamReader reader = new StreamReader(xmlFileStream))
{
xml = reader.ReadToEnd();
}
}
}
return xml;
}
聯(lián)系客服