public void Build() { ApplicationContext.Initialize("DeploymentUtility"); XmlConfigurator.Configure(); if (!string.IsNullOrEmpty(Manifest.VFSPath)) { if (!Directory.Exists(Manifest.VFSPath)) { log.Info("VFS path provided does not exist."); return; } if (!Directory.Exists(Path.Combine(Manifest.VFSPath, "Entity Model"))) { log.Info("It looks as if the VFS path is not pointing to the Model Directory. Please recheck your VFS Path"); return; } } string connString = Manifest.ConnectionString; log.Info("DeploymentUtility"); ServiceCollection services = InitializeServices(connString); SetRunningIdentity(); if (Utility.CanConnect(connString)) { VFSQuery.ConnectToVFS(connString); InitializeVFS(connString); ConfigManager = services.Get<ConfigurationManager>(); ConfigManager.RegisterConfigurationType(typeof(WebUserConfiguration)); BuildApplicationCore(Manifest.BuildCore); string deploymentName = Manifest.DeploymentName; if (!string.IsNullOrEmpty(deploymentName)) { // Support for multiple deployments if (deploymentName.IndexOf(",") > -1) { string[] deployments = deploymentName.Split(','); foreach (string deployment in deployments) { log.InfoFormat(Resources.msg_processing_deployment, deployment); DeployTarget(deployment.Trim()); } } else { log.InfoFormat(Resources.msg_processing_deployment, deploymentName); DeployTarget(deploymentName); } } else { log.InfoFormat(Resources.msg_deploying_portal, Manifest.PortalName); DeployPortal(); } } }
public void Build() { ApplicationContext.Initialize("DeploymentUtility"); XmlConfigurator.Configure(); string connString = Manifest.ConnectionString; log.Info("DeploymentUtility"); ServiceCollection services = InitializeServices(connString); SetRunningIdentity(); if (Utility.CanConnect(connString)) { VFSQuery.ConnectToVFS(connString); InitializeVFS(connString); ConfigManager = services.Get<ConfigurationManager>(); ConfigManager.RegisterConfigurationType(typeof(WebUserConfiguration)); BuildApplicationCore(Manifest.BuildCore); string deploymentName = Manifest.DeploymentName; if (!string.IsNullOrEmpty(deploymentName)) { // Support for multiple deployments if (deploymentName.IndexOf(",") > -1) { string[] deployments = deploymentName.Split(','); foreach (string deployment in deployments) { log.InfoFormat(Resources.msg_processing_deployment, deployment); DeployTarget(deployment.Trim()); } } else { log.InfoFormat(Resources.msg_processing_deployment, deploymentName); DeployTarget(deploymentName); } } else { log.InfoFormat(Resources.msg_deploying_portal, Manifest.PortalName); DeployPortal(); } } }