Himall商城加载(安装)dll

///


        /// 加载(安装)dll
        ///

        ///
        ///
        static Assembly InstallDll(string dllFileName)
        {
            string newFileName = dllFileName;
            FileInfo fileInfo = new FileInfo(dllFileName);
            DirectoryInfo copyFolder;
            if (!string.IsNullOrWhiteSpace(AppDomain.CurrentDomain.DynamicDirectory))
            {
                //获取asp.net dll运行目录
                copyFolder = new DirectoryInfo(AppDomain.CurrentDomain.DynamicDirectory);
            }
            else
                copyFolder = new DirectoryInfo(IOHelper.GetMapPath(""));
            newFileName = copyFolder.FullName + "\\" + fileInfo.Name;

            Assembly assembly 

你可能感兴趣的:(himall商城,服务器,asp.net,数据库)