Skip to content

Commit 2bf506c

Browse files
committed
Update build script
1 parent 5d4d445 commit 2bf506c

2 files changed

Lines changed: 1 addition & 13 deletions

File tree

GitVersion.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,3 @@ branches:
1414
tag: rc
1515
ignore:
1616
sha: []
17-
next-version: 3.0.0

build.cake

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -394,18 +394,7 @@ Task("Generate-Benchmark-Report")
394394

395395
var assemblyLocation = MakeAbsolute(File($"{publishDirectory}{libraryName}.Benchmark.dll")).FullPath;
396396
var artifactsLocation = MakeAbsolute(File(benchmarkDir)).FullPath;
397-
var benchmarkToolLocation = Context.Tools.Resolve("dotnet-benchmark.exe");
398-
399-
var processResult = StartProcess(
400-
benchmarkToolLocation,
401-
new ProcessSettings()
402-
{
403-
Arguments = $"{assemblyLocation} -f * --artifacts={artifactsLocation}"
404-
});
405-
if (processResult != 0)
406-
{
407-
throw new Exception($"dotnet-benchmark.exe did not complete successfully. Result code: {processResult}");
408-
}
397+
DotNetCoreTool(benchmarkProject, "benchmark", $"{assemblyLocation} -f * --artifacts={artifactsLocation}");
409398
});
410399

411400

0 commit comments

Comments
 (0)