File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88#tool nuget: ? package = GitVersion . CommandLine & version = 5.1 .3 - beta1 . 29 & prerelease
99#tool nuget: ? package = GitReleaseManager & version = 0.9 .0
1010#tool nuget: ? package = OpenCover & version = 4.7 .922
11- #tool nuget: ? package = ReportGenerator & version = 4.3 .6
11+ #tool nuget: ? package = ReportGenerator & version = 4.3 .8
1212#tool nuget: ? package = coveralls . io & version = 1.4 .2
1313#tool nuget: ? package = xunit . runner . console & version = 2.4 .1
1414
@@ -394,7 +394,18 @@ Task("Generate-Benchmark-Report")
394394
395395 var assemblyLocation = MakeAbsolute ( File ( $ "{ publishDirectory } { libraryName } .Benchmark.dll") ) . FullPath ;
396396 var artifactsLocation = MakeAbsolute ( File ( benchmarkDir ) ) . FullPath ;
397- DotNetCoreTool ( benchmarkProject , "benchmark" , $ "{ assemblyLocation } -f * --artifacts={ artifactsLocation } ") ;
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+ }
398409} ) ;
399410
400411
You can’t perform that action at this time.
0 commit comments