# dotnetToolpath

This is an optional argument that specifies the path to the .NET diagnostic tool used to connect to .NET applications and capture GC logs, thread dumps, and heap substitute data.

Type: string

Default: Same directory as the yc-360 script

Usage:

  • Omitted: The script looks for the .NET diagnostic tool in the same directory as the yc-360 script.
  • Specified: The script loads the tool from the path you provide.

How it works:

  1. When dotnetToolPath is provided, the yc-360 script loads the .NET diagnostic tool from that path.
  2. When omitted, the script searches for the tool in the directory where the yc-360 script is located.
  3. The path must be an absolute path on Windows.
  4. This argument is supported on Windows only.

Example(CLI):

Run yc.exe to start capturing the .NET artifacts from a CLI

.\yc -onlyCapture -p 22534 -appRuntime=dotnet -dotnetToolPath=C:\path\to\yc-360\yc-dot-net.exe
1