/// <summary>
 ///   <p>This is a commandline tool to run an ASP.Net web.config tranformation.</p>
 ///   <p>For more details, visit the <a href="https://github.com/erichexter/WebConfigTransformRunner">official website</a>.</p>
 /// </summary>
 /// <remarks>
 ///   <p>This is a <a href="http://www.nuke.build/docs/authoring-builds/cli-tools.html#fluent-apis">CLI wrapper with fluent API</a> that allows to modify the following arguments:</p>
 ///   <ul>
 ///     <li><c>&lt;outputFilename&gt;</c> via <see cref="WebConfigTransformRunnerSettings.OutputFilename"/></li>
 ///     <li><c>&lt;transformFilename&gt;</c> via <see cref="WebConfigTransformRunnerSettings.TransformFilename"/></li>
 ///     <li><c>&lt;webConfigFilename&gt;</c> via <see cref="WebConfigTransformRunnerSettings.WebConfigFilename"/></li>
 ///   </ul>
 /// </remarks>
 public static IReadOnlyCollection <Output> WebConfigTransformRunner(WebConfigTransformRunnerSettings toolSettings = null)
 {
     toolSettings      = toolSettings ?? new WebConfigTransformRunnerSettings();
     using var process = ProcessTasks.StartProcess(toolSettings);
     process.AssertZeroExitCode();
     return(process.Output);
 }
Пример #2
0
 public static WebConfigTransformRunnerSettings ResetOutputFilename(this WebConfigTransformRunnerSettings toolSettings)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.OutputFilename = null;
     return(toolSettings);
 }
Пример #3
0
 public static WebConfigTransformRunnerSettings SetOutputFilename(this WebConfigTransformRunnerSettings toolSettings, string outputFilename)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.OutputFilename = outputFilename;
     return(toolSettings);
 }
 static partial void PostProcess(WebConfigTransformRunnerSettings toolSettings);