예제 #1
0
        private string ConvertHTAccessToWebConfig(string htaccess)
        {
            var    convert       = new ConversionManager();
            string exstWebConfig = WebConfigPath;
            string webconfig     = string.Empty;

            if (System.IO.File.Exists(exstWebConfig))
            {
                using (var reader = new StreamReader(exstWebConfig))
                {
                    webconfig = reader.ReadToEnd();
                }
            }

            return(convert.GenerateOrUpdateWebConfig(webconfig, htaccess));
        }