You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DotCover no longer works with version 2025.2+ of JetBrains.dotCover.CommandLineTools #4635
> dotnet-cake .\dotcover_test.cake --verbosity=Verbose
Analyzing build script...
Processing build script...
Installing tools...
Tool JetBrains.dotCover.CommandLineTools is already installed, but a different version has been requested. Uninstall/install will now be performed...
Compiling build script...
========================================
unit-test
========================================
Executing task: unit-test
JetBrains dotCover Console Runner 2025.2.3. Build 20251003.202247 (windows-x64)
Copyright (c) 2009-2025 JetBrains s.r.o. All rights reserved.
Command not recognized.
Usage: dotCover <command> [<parameters>]
Type 'dotCover help <command>' for help on a specific command
Available commands:
cover Run coverage analysis on a specified application or test project
merge Combine multiple coverage snapshots into one
report Generate a coverage report from a snapshot
version Write the current dotCover version to a file
help Show help for dotCover commands
Additional help topics:
exit-codes Meaning of the default exit codes
Finished executing task: unit-test
Completed in 00:00:01.8979610
Task Duration Status
----------------------------------------------------------------------
unit-test 00:00:01.8988575 Executed
----------------------------------------------------------------------
Total: 00:00:01.8988575
> dotnet-cake .\dotcover_test.cake --verbosity=diagnostic
Looking for modules...
No modules found to install.
Module directory does not exist.
Analyzing build script...
Analyzing C:/Development/test/cake/dotcover_test.cake...
Processing build script...
Installing tools...
Configured Tools Folder: C:/Development/test/cake/tools
Specified installation location doesn't currently exist.
Checking for tool: jetbrains.dotcover.commandlinetools
Running dotnet tool with operation Install: JetBrains.dotCover.CommandLineTools...
Executing: "dotnet" tool install "JetBrains.dotCover.CommandLineTools" --tool-path "C:/Development/test/cake/tools" --version 2025.2.3 --verbosity diagnostic
Tool Folder: C:/Development/test/cake/tools/.store/jetbrains.dotcover.commandlinetools
Found 156 files in tool folder
Adding assembly reference to System.Private.CoreLib.dll...
<hidden for brevity>
Adding assembly reference to Microsoft.IdentityModel.JsonWebTokens.dll...
Importing namespace Cake.Common...
<hidden for brevity>
Importing namespace System.Threading.Tasks...
Compiling build script...
========================================
unit-test
========================================
Executing task: unit-test
Resolved tool to path C:/Program Files/dotnet/dotnet.exe
Executing: "C:/Development/test/cake/tools/dotCover.exe" Cover /TargetExecutable="C:/Program Files/dotnet/dotnet.exe" /TargetArguments="test \"C:/Development/test/cake/TestProject/TestProject.csproj\"" /Output="C:/Development/test/cake/results.dcvr"
JetBrains dotCover Console Runner 2025.2.3. Build 20251003.202247 (windows-x64)
Copyright (c) 2009-2025 JetBrains s.r.o. All rights reserved.
Command not recognized.
Usage: dotCover <command> [<parameters>]
Type 'dotCover help <command>' for help on a specific command
Available commands:
cover Run coverage analysis on a specified application or test project
merge Combine multiple coverage snapshots into one
report Generate a coverage report from a snapshot
version Write the current dotCover version to a file
help Show help for dotCover commands
Additional help topics:
exit-codes Meaning of the default exit codes
Finished executing task: unit-test
Completed in 00:00:01.7420880
Task Duration Status
----------------------------------------------------------------------
unit-test 00:00:01.7428831 Executed
----------------------------------------------------------------------
Total: 00:00:01.7428831
How is this different to how you would manually invoke dotcover outside of Cake? Is there no longer a cover command? If so, that is a major breaking change, and I wouldn't have expected that between version 2025.1.7 and 2025.2.3.
Activity
devlead commentedon Oct 24, 2025
It's a .NET Tool now, if you click the Cake tab at
https://www.nuget.org/packages/JetBrains.dotCover.CommandLineTools/
You'll get an example like
#tool dotnet:?package=JetBrains.dotCover.CommandLineTools&version=2025.2.3, so the script should probably be more likegamingrobot commentedon Oct 24, 2025
I updated the script to use
#tool dotnet:instead of#tool nuget:and made sure the dotnet test path was absolute.Version 2025.1.7 works as expected:
Output:
But 2025.2.3 fails with
Command not recognized.Output
gep13 commentedon Oct 27, 2025
Can you run with:
That way, we should see the actual command that is being executed.
gamingrobot commentedon Oct 28, 2025
gep13 commentedon Oct 29, 2025
@gamingrobot so now that we can see exactly what is being executed, i.e.
How is this different to how you would manually invoke dotcover outside of Cake? Is there no longer a
covercommand? If so, that is a major breaking change, and I wouldn't have expected that between version2025.1.7and2025.2.3.Fix issue cake-build#4635: Add alternative executable names for DotCo…
gamingrobot commentedon Nov 12, 2025
JetBrains doesn't use semantic versioning so a breaking change can occur at anytime.
It looks like the argument parsing has changed between 2025.1.7 and 2025.2.3 this is the expected command:
Fix issue cake-build#4635: Add alternative executable names for DotCo…
Merge pull request #4646 from SoulSniper1212/fix-issue-4635-dotcover-…
github-actions commentedon Mar 1, 2026
🎉 This issue has been resolved in version v6.1.0 🎉
The release is available on:
Your GitReleaseManager bot 📦🚀
Bump cake.tool from 4.0.0 to 6.3.0 (#39809)