TypeLoadException when running the project with MemProfiler

Good morning,
I'm trying to run the evaluation version of your product but I can't start my program through the profiler.
The program, which is a NetCore Console App, runs fine on its own, but as soon as I try to debug it with the profile, the first line of code hits the following Exception:
System.TypeLoadException: 'Could not load type System.CannotUnloadAppDomainException' from assembly 'System.Private.CoreLib, Version=4.0.0.0, Culture=neutral,PublicKeyToken=7cec85d7bea7798e.
I am running Visual Studio Enterprise 15.5.3. on Windows 2012 R2 Standard.
dotnet version is 2.1.4.
Any ideas what might be going on? Thanks.
Regards
Luca
I'm trying to run the evaluation version of your product but I can't start my program through the profiler.
The program, which is a NetCore Console App, runs fine on its own, but as soon as I try to debug it with the profile, the first line of code hits the following Exception:
System.TypeLoadException: 'Could not load type System.CannotUnloadAppDomainException' from assembly 'System.Private.CoreLib, Version=4.0.0.0, Culture=neutral,PublicKeyToken=7cec85d7bea7798e.
I am running Visual Studio Enterprise 15.5.3. on Windows 2012 R2 Standard.
dotnet version is 2.1.4.
Any ideas what might be going on? Thanks.
Regards
Luca