| File: ForwardingApp.cs | Web Access |
| Project: src\sdk\src\Cli\dotnet\dotnet.csproj (dotnet) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #nullable disable using System.Diagnostics; using Microsoft.DotNet.Cli.Utils; namespace Microsoft.DotNet.Cli; public class ForwardingApp( string forwardApplicationPath, IEnumerable<string> argsToForward, string depsFile = null, string runtimeConfig = null, string additionalProbingPath = null, Dictionary<string, string> environmentVariables = null) { private ForwardingAppImplementation _implementation = new ForwardingAppImplementation( forwardApplicationPath, argsToForward, depsFile, runtimeConfig, additionalProbingPath, environmentVariables); public ProcessStartInfo GetProcessStartInfo() { return _implementation.GetProcessStartInfo(); } public ForwardingApp WithEnvironmentVariable(string name, string value) { _implementation = _implementation.WithEnvironmentVariable(name, value); return this; } public int Execute() { return _implementation.Execute(); } }