https://bugs.winehq.org/show_bug.cgi?id=54341
--- Comment #2 from Michael J Evans mjevans1983@gmail.com --- After reading it again I noticed something on https://github.com/dotnet/diagnostics/blob/main/documentation/single-file-to... which wasn't on the main documentation I'd mostly been looking at.
DOTNET_ROOT I tried setting this to the game's binary path where it looked like it might have a copy of the runtime. Didn't work.
With that still set I downloaded the windows x64 '.net runtime' which required human interaction to install. https://dotnet.microsoft.com/en-us/download/dotnet/6.0
After that dotnet-dump (64 bit windows) worked, though I still had to have set DOTNET_ROOT=pathabove .
I also tried https://learn.microsoft.com/en-us/dotnet/core/diagnostics/dotnet-stack but rather than dump the threads as I hoped it just froze for ~10 min.
clrstack -all is what I was looking for, but the sub-argument is not directly documented on the pages linked above!
cd \path\to\dotnet-dump64.exe set DOTNET_ROOT="Z:\home\USER.local\share\Steam\steamapps\common\Cosmoteer\Bin" dd64 analyze dump_20230119_131617.dmp -c "clrstack -all" > somefile.txt