示例#1
0
        private async Task PublishWithCustomWebConfig(IRunProcess runner, IFile webConfig)
        {
            await WriteWebConfig(webConfig);
            await ExecutePublishProcess(runner);

            webConfig.Delete();
        }
示例#2
0
        public async Task RunDeployment([FromServices] IRunProcess runner)
        {
            var webConfig = Model.ProjectFile().Directory?.File("web.config") ??
                            throw new InvalidOperationException("Cannot find project directory.");

            await using var preservedFile = new PreserveFile(webConfig);
            await PublishWithCustomWebConfig(runner, webConfig);
        }
示例#3
0
        private async Task ExecutePublishProcess(IRunProcess runner)
        {
            var process = runner.Run("dotnet", PublishSyntax());

            await PumpOutputStream(process);
        }