Esempio n. 1
0
        protected void DotnetPublish(string publishRoot = null)
        {
            var publisher = DeploymentParameters.ApplicationPublisher ?? new ApplicationPublisher(DeploymentParameters.ApplicationPath);

            _publishedApplication = publisher.Publish(DeploymentParameters, Logger).GetAwaiter().GetResult();
            DeploymentParameters.PublishedApplicationRootPath = _publishedApplication.Path;
        }
        private string CopyPublishedOutput(PublishedApplication application, ILogger logger)
        {
            var target = CreateTempDirectory();

            var source = new DirectoryInfo(application.Path);

            CopyFiles(source, target, logger);
            return(target.FullName);
        }