diff --git a/tracer/test/Datadog.Trace.TestHelpers/NgenHelper.cs b/tracer/test/Datadog.Trace.TestHelpers/NgenHelper.cs index 657eef3169be..3c302512087c 100644 --- a/tracer/test/Datadog.Trace.TestHelpers/NgenHelper.cs +++ b/tracer/test/Datadog.Trace.TestHelpers/NgenHelper.cs @@ -21,6 +21,9 @@ public static void InstallToNativeImageCache(ITestOutputHelper output, string ap var install = $"install \"{appFilename}\""; RunNgen(output, workingDirectory, install); + + // display NGEN'd assemblies + RunNgen(output, "display"); } public static void UninstallFromNativeImageCache(ITestOutputHelper output, string applicationPath) @@ -28,8 +31,11 @@ public static void UninstallFromNativeImageCache(ITestOutputHelper output, strin var appFilename = Path.GetFileName(applicationPath); var workingDirectory = Path.GetDirectoryName(applicationPath); - var install = $"install \"{appFilename}\""; + var install = $"uninstall \"{appFilename}\""; RunNgen(output, workingDirectory, install); + + // display NGEN'd assemblies + RunNgen(output, "display"); } private static void RunNgen(ITestOutputHelper output, string workingDirectory, string arguments)