From 2371be3d35d2dd57dd9bd58a20c7637984c86d03 Mon Sep 17 00:00:00 2001 From: Kuldeep LNU Date: Mon, 22 May 2023 11:00:39 +0530 Subject: [PATCH] fix(markup-compiler): removing xamltypemapper clearance from compile function --- .../MS/Internal/MarkupCompiler/MarkupCompiler.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/MarkupCompiler/MarkupCompiler.cs b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/MarkupCompiler/MarkupCompiler.cs index 82265660bff..cc1e760f39b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/MarkupCompiler/MarkupCompiler.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/MarkupCompiler/MarkupCompiler.cs @@ -225,8 +225,7 @@ public void Compile(CompilationUnit cu) { // Don't rely on next compilation to reset as that would unnecessarily delay // garbage collection of this static data that cannot be reused by the next compilation. - // Also, the ReflectionHelper must be disposed now to release file locks on assemblies. - XamlTypeMapper.Clear(); + // Also, the ReflectionHelper must be disposed now to release file locks on assemblies KnownTypes.Clear(); ReflectionHelper.Dispose(); }