private async Task PublishWithCustomWebConfig(IRunProcess runner, IFile webConfig) { await WriteWebConfig(webConfig); await ExecutePublishProcess(runner); webConfig.Delete(); }
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); }
private async Task ExecutePublishProcess(IRunProcess runner) { var process = runner.Run("dotnet", PublishSyntax()); await PumpOutputStream(process); }