- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 757
 
Open
Description
Prerequisites
- I have written a descriptive issue title
 - I have searched issues to ensure it has not already been reported
 
Cake runner
Cake .NET Tool
Cake version
5.1.0
Operating system
Windows
Operating system architecture
x64
CI Server
No response
What are you seeing?
When using version 2025.2+ of JetBrains.dotCover.CommandLineTools cake fails due to Error: DotCover: Could not locate executable.
This is due to dotcover removing dotcover.exe in 2025.2 https://www.jetbrains.com/help/dotcover/Whats_New.html#dotcover-2025-2 and the code only looks for that executable https://github.com/cake-build/cake/blob/develop/src/Cake.Common/Tools/DotCover/DotCoverTool.cs#L52
What is expected?
Cake should invoke dotcover for version 2025.2+ of JetBrains.dotCover.CommandLineTools
Steps to Reproduce
- Create new xunit test project using 
dotnet new xunit -n TestProject --framework net8.0 - Run this cake script
 
#tool "nuget:?package=JetBrains.dotCover.CommandLineTools&version=2025.2.3"
Task("unit-test")
    .Does(() =>
{
    var dotCoverSettings = new DotCoverCoverSettings();
    DotCoverCover(context => context.DotNetTest("TestProject/TestProject.csproj"), "results.dcvr", dotCoverSettings);
});
var target = Argument("target", "unit-test");
RunTarget(target);
Output log
> dotnet-cake .\dotcover_test.cake --verbosity=Verbose
Analyzing build script...
Processing build script...
Installing tools...
Compiling build script...
========================================
unit-test
========================================
Executing task: unit-test
An error occurred when executing task 'unit-test'.
Completed in 00:00:00.0213308
Task                          Duration            Status
----------------------------------------------------------------------
unit-test                     00:00:00.0222373    Failed
----------------------------------------------------------------------
Total:                        00:00:00.0222373
Error: DotCover: Could not locate executable.
Metadata
Metadata
Assignees
Labels
No labels