From 022b7ce6d5180f3bbc7cfd57f5e1db2244b47245 Mon Sep 17 00:00:00 2001 From: Kirill Osenkov Date: Mon, 11 Oct 2021 20:21:22 -0700 Subject: [PATCH 1/2] Fix typo. --- src/Build/Definition/Project.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Build/Definition/Project.cs b/src/Build/Definition/Project.cs index d842373c86c..143892743d3 100644 --- a/src/Build/Definition/Project.cs +++ b/src/Build/Definition/Project.cs @@ -352,11 +352,11 @@ private Project(XmlReader xmlReader, IDictionary globalPropertie ErrorUtilities.VerifyThrowArgumentLengthIfNotNull(toolsVersion, nameof(toolsVersion)); ErrorUtilities.VerifyThrowArgumentNull(projectCollection, nameof(projectCollection)); ProjectCollection = projectCollection; - var defailtImplementation = new ProjectImpl(this, xmlReader, globalProperties, toolsVersion, subToolsetVersion, loadSettings, evaluationContext); - implementationInternal = (IProjectLinkInternal)defailtImplementation; - implementation = defailtImplementation; + var defaultImplementation = new ProjectImpl(this, xmlReader, globalProperties, toolsVersion, subToolsetVersion, loadSettings, evaluationContext); + implementationInternal = (IProjectLinkInternal)defaultImplementation; + implementation = defaultImplementation; - defailtImplementation.Initialize(globalProperties, toolsVersion, subToolsetVersion, loadSettings, evaluationContext); + defaultImplementation.Initialize(globalProperties, toolsVersion, subToolsetVersion, loadSettings, evaluationContext); } /// From f8c77cd7900bead12929e53ee9a70e04256e5772 Mon Sep 17 00:00:00 2001 From: Kirill Osenkov Date: Tue, 12 Oct 2021 12:11:02 -0700 Subject: [PATCH 2/2] Fix another occurrence of the same typo. --- src/Build/Definition/Project.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Build/Definition/Project.cs b/src/Build/Definition/Project.cs index 143892743d3..ff8abfdce9b 100644 --- a/src/Build/Definition/Project.cs +++ b/src/Build/Definition/Project.cs @@ -447,15 +447,15 @@ private Project(string projectFile, IDictionary globalProperties ErrorUtilities.VerifyThrowArgumentNull(projectCollection, nameof(projectCollection)); ProjectCollection = projectCollection; - var defailtImplementation = new ProjectImpl(this, projectFile, globalProperties, toolsVersion, subToolsetVersion, loadSettings, evaluationContext); - implementationInternal = (IProjectLinkInternal)defailtImplementation; - implementation = defailtImplementation; + var defaultImplementation = new ProjectImpl(this, projectFile, globalProperties, toolsVersion, subToolsetVersion, loadSettings, evaluationContext); + implementationInternal = (IProjectLinkInternal)defaultImplementation; + implementation = defaultImplementation; // Note: not sure why only this ctor flavor do TryUnloadProject // seems the XmlReader based one should also clean the same way. try { - defailtImplementation.Initialize(globalProperties, toolsVersion, subToolsetVersion, loadSettings, evaluationContext); + defaultImplementation.Initialize(globalProperties, toolsVersion, subToolsetVersion, loadSettings, evaluationContext); } catch (Exception ex) {