Esempio n. 1
0
        public virtual void Deploy(IDirectory source)
        {
            if (source == null)
            {
                throw new ArgumentNullException("source");
            }

            if (RemoveEmptyDirectory)
            {
                source.RemoveEmptyDirectories();
            }

            if (WebConfigTransformers.Count > 0)
            {
                WebConfigHelper config;
                var             file = source.FindFile(WebConfigFileName);
                if (file == null)
                {
                    file   = source.CreateFile(WebConfigFileName);
                    config = WebConfigHelper.New();
                }
                else
                {
                    config = WebConfigHelper.Load(file.ReadAsString());
                }

                WebConfigTransformers.Transform(config);

                file.WriteString(config.ToString());
            }

            DeployCore(source);
        }
Esempio n. 2
0
 private static WebConfigHelper CreateDefaultWebConfig()
 {
     return(WebConfigHelper.New()
            .AddTargetFramework("4.5")
            .AddExtensionlessUrlHandlers()
            .ConfigureAllowDoubleEscaping());
 }
Esempio n. 3
0
 private static WebConfigHelper CreateDefaultWebConfig()
 {
     return(WebConfigHelper.New().AddTargetFramework("4.0").AddExtensionlessUrlHandlers());
 }