Skip to content

Commit 05621fc

Browse files
authored
fix(markup-compiler): removing xamltypemapper clearance from compile function (#7846)
1 parent 971c4c8 commit 05621fc

File tree

1 file changed

+1
-2
lines changed
  • src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/MarkupCompiler

1 file changed

+1
-2
lines changed

src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/MarkupCompiler/MarkupCompiler.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,7 @@ public void Compile(CompilationUnit cu)
225225
{
226226
// Don't rely on next compilation to reset as that would unnecessarily delay
227227
// garbage collection of this static data that cannot be reused by the next compilation.
228-
// Also, the ReflectionHelper must be disposed now to release file locks on assemblies.
229-
XamlTypeMapper.Clear();
228+
// Also, the ReflectionHelper must be disposed now to release file locks on assemblies
230229
KnownTypes.Clear();
231230
ReflectionHelper.Dispose();
232231
}

0 commit comments

Comments
 (0)