private ProcessStartInfo GetProcessStartInfo(string baseLocation, bool isCore) { string workingDirectory = isCore ? Path.Combine(baseLocation, NETStandardFolder) : Path.Combine(baseLocation, NETFrameworkFolder); string exePath = isCore ? DotNetMuxer.MuxerPathOrDefault() : Path.Combine(workingDirectory, "Microsoft.NET.Sdk.Functions.Generator.exe"); string arguments = isCore ? $"Microsoft.NET.Sdk.Functions.Generator.dll \"{TargetPath}\" \"{OutputPath}\"" : $"\"{TargetPath}\" \"{OutputPath}\""; return(new ProcessStartInfo { UseShellExecute = false, CreateNoWindow = false, RedirectStandardError = true, RedirectStandardOutput = true, WorkingDirectory = workingDirectory, FileName = exePath, Arguments = arguments }); }