Skip to content

Commit

Permalink
Fix build script to be able to invoke dotnet-benchmark.exe
Browse files Browse the repository at this point in the history
  • Loading branch information
Jericho committed Nov 30, 2019
1 parent 1df0137 commit 16e158c
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,18 @@ Task("Generate-Benchmark-Report")
var assemblyLocation = MakeAbsolute(File($"{publishDirectory}{libraryName}.Benchmark.dll")).FullPath;
var artifactsLocation = MakeAbsolute(File(benchmarkDir)).FullPath;
DotNetCoreTool(benchmarkProject, "benchmark", $"{assemblyLocation} -f * --artifacts={artifactsLocation}");
var benchmarkToolLocation = Context.Tools.Resolve("dotnet-benchmark.exe");
var processResult = StartProcess(
benchmarkToolLocation,
new ProcessSettings()
{
Arguments = $"{assemblyLocation} -f * --artifacts={artifactsLocation}"
});
if (processResult != 0)
{
throw new Exception($"dotnet-benchmark.exe did not complete successfully. Result code: {processResult}");
}
});


Expand Down

0 comments on commit 16e158c

Please sign in to comment.