I'm trying to profile a .NET Core console application with the dotMemory CLI using the profilling API. This works fine from the GUI, but the CLI throws an exception:
The profiler is running. Waiting for connection from profiling process...
Press Ctrl-C to stop profiling
Profiler connected. PID:11612, runtime v4.0.30319.0
Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=18.104.22.168,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
[PID:11612] Cannot set EOF
[location] = C:\Build Agent\work\f532b5455ffc19e9\dotCommon\Native\Shared\include\jetbrains/common/memory_mapped_file_
[function] = void __cdecl jetbrains::common::memory_mapped_file_allocator<unsigned int,struct jetbrains::common::lockf
[WIN32 error] = 1224, The requested operation cannot be performed on a file with a user-mapped section open
Profiler disconnected. PID:11612