When running benchmarks using BenchmarkDotNet on WSL2, I encountered an "Access Denied" error. This error prevents the benchmark from completing successfully. The error is:
Generate Exception: Access to the path '/mnt/c/DumpStack.log.tmp' is denied.
Additional information:
- Running on Ubuntu 22.04.3 LTS(Jammy Jellyfish) via WSL2.
- Using BenchmarkDotNet v0.13.8.
- .NET SDK version 7.0.111.
- Encountered a warning about running the benchmarks in a DEBUG configuration, but the main concern is the access denied error.`
Logs/output:

My understanding is that WSL2 doesn't have permissions to read the Dump Stack logging. Is it possible to make it work on WSL2?