Problem
The dottrace.exe executable included with JetBrains Rider installation cannot be used for profiling directly from the command line because it is missing required dependencies. Attempting to run it from the terminal, the error below appears:
Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'JetBrains.Platform.Core, Version=777.0.0.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325' or one of its dependencies. The system cannot find the file specified.
at JetBrains.dotTrace.ConsoleProfiler.ProfilerProgram.MainImpl(String[] args)
at JetBrains.dotTrace.ConsoleProfiler.ProfilerProgram.ProfilerProgramEntryPoint.Main(String[] args)
Cause
The dottrace.exe provided in the Rider directory is intended to be used in conjunction with the Rider IDE and is not designed for standalone execution. Using it directly requires dependencies that are not included in its installation.
Resolution
To utilize DotTrace functionality from the command line, use one of the following methods:
-
Install the Dedicated Command Line Tools: Download and install the dedicated DotTrace Command Line Tools from the official JetBrains website: DotTrace Command Line Tools.
-
Install the Global JetBrains DotTrace Tool using NuGet: Run the following command to install the
JetBrains.dotTrace.GlobalToolspackage:dotnet tool install --global JetBrains.dotTrace.GlobalTools
This will install the necessary tool for command-line profiling along with its required dependencies.
Comments
0 comments
Please sign in to leave a comment.