diff --git a/src/Build/Definition/Project.cs b/src/Build/Definition/Project.cs index d842373c86c..ff8abfdce9b 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); } /// @@ -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) {