static XmlElement AddImportElement(
            this MSBuildProject project,
            string importedProjectFile,
            ProjectImportLocation importLocation)
        {
            if (importLocation == ProjectImportLocation.Top)
            {
                return(project.AddImportElementAtTop(importedProjectFile));
            }
            XmlElement import = project.CreateImportElement(importedProjectFile);

            project.Document.DocumentElement.AppendChild(import);
            return(import);
        }