nuke-build / nuke

🏗 The AKEless Build System for C#/.NET
https://nuke.build
MIT License
3.07k stars 367 forks source link

Latest version of JetBrains dotCover not running on Linux via dotCoverTasks #1346

Closed Sam13 closed 8 months ago

Sam13 commented 8 months ago

Usage Information

Nuke v8.0.0 on Linux, NET SDK 8

Description

Reproduction Steps

Expected Behavior

DotCover tool runs

Actual Behavior

Error message:

  System.AggregateException: One or more errors occurred. (Could not find 'mono' via '/usr/bin/which'.)
   ---> System.ArgumentException: Could not find 'mono' via '/usr/bin/which'. 

Regression?

No

Known Workarounds

Resolve and set tool path manually with every invocation:

DotCoverTasks.DotCoverCover(s => s
       .SetProcessToolPath(NuGetToolPathResolver.GetPackageExecutable(
            "JetBrains.dotCover.DotNetCliTool|JetBrains.dotCover.CommandLineTools",
            EnvironmentInfo.IsWin ? "dotCover.exe" : "dotCover.sh|dotCover.dll"))
...

Could you help with a pull-request?

Yes