From b64de63e007356bf7cba4699b350994688b2e87b Mon Sep 17 00:00:00 2001 From: Felipe da Conceicao Guimaraes Date: Thu, 29 Jul 2021 10:17:07 -0300 Subject: [PATCH 1/2] adding orderby in foreach loop --- .../PresentationFramework/System/Windows/Markup/XmlnsCache.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XmlnsCache.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XmlnsCache.cs index 03fe3eb9ce9..44ad95cdd33 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XmlnsCache.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XmlnsCache.cs @@ -12,6 +12,7 @@ using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; +using System.Linq; using System.Reflection; using System.Runtime.InteropServices; using System.Security; @@ -93,7 +94,7 @@ private void AddReferencedAssemblies() List interestingAssemblies = new List(); // Load all the assemblies into a list. - foreach(string assemblyName in _assemblyPathTable.Keys) + foreach(string assemblyName in _assemblyPathTable.Keys.OfType().OrderBy(s => s)) { bool hasCacheInfo = true; Assembly assy; From ccfcaadccce60cc6db5fc55cc8902525e5ea9ec1 Mon Sep 17 00:00:00 2001 From: Michael Dietrich Date: Sat, 30 Jan 2021 19:02:01 +0100 Subject: [PATCH 2/2] Order references to make BAML deterministic