Skip to content

Commit 9612c51

Browse files
authored
Fix MonoAOT file name not provided error during benchmark generation. (#2981)
1 parent 2d71583 commit 9612c51

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/BenchmarkDotNet/Toolchains/DotNetCli/DotNetCliCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class DotNetCliCommand
3939
public DotNetCliCommand(string cliPath, string filePath, string tfm, string? arguments, GenerateResult generateResult, ILogger logger,
4040
BuildPartition buildPartition, IReadOnlyList<EnvironmentVariable>? environmentVariables, TimeSpan timeout, bool logOutput = false)
4141
{
42-
CliPath = cliPath ?? DotNetCliCommandExecutor.DefaultDotNetCliPath.Value;
42+
CliPath = cliPath.IsBlank() ? DotNetCliCommandExecutor.DefaultDotNetCliPath.Value : cliPath;
4343
Arguments = arguments;
4444
FilePath = filePath;
4545
TargetFrameworkMoniker = tfm;

src/BenchmarkDotNet/Toolchains/DotNetCli/DotNetCliCommandExecutor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ internal static ProcessStartInfo BuildStartInfo(string? customDotNetCliPath, str
106106

107107
var startInfo = new ProcessStartInfo
108108
{
109-
FileName = customDotNetCliPath ?? DefaultDotNetCliPath.Value,
109+
FileName = customDotNetCliPath.IsBlank() ? DefaultDotNetCliPath.Value : customDotNetCliPath,
110110
WorkingDirectory = workingDirectory,
111111
Arguments = arguments,
112112
UseShellExecute = false,

0 commit comments

Comments
 (0)