private static PluginInfo AddPluginInfo(FileInfo dllFile)
        {
            PluginInfo fullName;
            string     str  = dllFile.Name.Replace(".dll", "");
            string     str1 = string.Concat(IOHelper.GetMapPath("/plugins/configs/"), str, ".config");

            if (!Directory.Exists(IOHelper.GetMapPath("/plugins/configs/")))
            {
                Directory.CreateDirectory(IOHelper.GetMapPath("/plugins/configs/"));
            }
            if (File.Exists(str1))
            {
                fullName = (PluginInfo)XmlHelper.DeserializeFromXML(typeof(PluginInfo), str1);
            }
            else
            {
                FileInfo[] files = dllFile.Directory.GetFiles("plugin.config", SearchOption.TopDirectoryOnly);
                if (files.Length <= 0)
                {
                    throw new FileNotFoundException(string.Concat("未找到插件", str, "的配置文件"));
                }
                fullName                 = (PluginInfo)XmlHelper.DeserializeFromXML(typeof(PluginInfo), files[0].FullName);
                fullName.PluginId        = str;
                fullName.PluginDirectory = dllFile.Directory.FullName;
                fullName.AddedTime       = new DateTime?(DateTime.Now);
                XmlHelper.SerializeToXml(fullName, str1);
            }
            PluginsManagement.UpdatePluginList(fullName);
            return(fullName);
        }