From d46cbe601a9d5d4437f256a496f29a3fe6881da8 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Bruyère Date: Fri, 22 May 2020 03:33:37 +0200 Subject: use DllMapCore for native dll path resolutions --- Samples/BasicTests/BasicTests.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Samples/BasicTests/BasicTests.cs') diff --git a/Samples/BasicTests/BasicTests.cs b/Samples/BasicTests/BasicTests.cs index b0d99ccc..fba4b70a 100644 --- a/Samples/BasicTests/BasicTests.cs +++ b/Samples/BasicTests/BasicTests.cs @@ -10,9 +10,11 @@ namespace tests { public class BasicTests : SampleBase { - [STAThread] static void Main () { +#if NETCOREAPP3_1 + DllMapCore.Resolve.Enable (true); +#endif using (BasicTests app = new BasicTests ()) { app.Run (); } @@ -96,7 +98,7 @@ namespace tests else if (idx < 0) idx = testFiles.Length - 1; - Console.WriteLine ($"Loading {testFiles [idx]}."); + Console.WriteLine ($"Loading {testFiles [idx]}. {AppDomain.CurrentDomain.MonitoringSurvivedMemorySize}"); Load (testFiles [idx]).DataSource = this; } catch (Exception ex) { -- cgit v1.3.1-4-g156e