private void LoadImportedNamespaces(ProjectElement result, MsBuildProjectLoader msBuildLoader) { IEnumerable <BuildItem> importItems = msBuildLoader.GetProjectItems(STR_Import); foreach (BuildItem item in importItems) { result.AddImportedNamespace(item.FinalItemSpec); } }
protected virtual void LoadImportedNamespaces(ProjectElement project, XmlDocument doc, string projectDir, string projectLangTag) { string lImportsQuery = String.Format(STR_ImportsQueryFormat, projectLangTag); XmlNodeList lImports = doc.SelectNodes(lImportsQuery); int lCount = lImports.Count; for (int i = 0; i < lCount; i++) { System.Xml.XmlNode lImportNode = lImports[i]; System.Xml.XmlNode lNamespace = lImportNode.Attributes.GetNamedItem(STR_Namespace); string lNamespaceStr = lNamespace.Value; project.AddImportedNamespace(lNamespaceStr); } }
protected virtual void LoadImportedNamespaces(ProjectElement project, XmlDocument doc, string projectDir, string projectLangTag) { string lImportsQuery = String.Format(STR_ImportsQueryFormat, projectLangTag); XmlNodeList lImports = doc.SelectNodes(lImportsQuery); int lCount = lImports.Count; for (int i = 0; i < lCount; i++) { System.Xml.XmlNode lImportNode = lImports[i]; System.Xml.XmlNode lNamespace = lImportNode.Attributes.GetNamedItem(STR_Namespace); string lNamespaceStr = lNamespace.Value; project.AddImportedNamespace(lNamespaceStr); } }
private void LoadImportedNamespaces(ProjectElement result, MsBuildProjectLoader msBuildLoader) { IEnumerable<BuildItem> importItems = msBuildLoader.GetProjectItems(STR_Import); foreach (BuildItem item in importItems) { result.AddImportedNamespace(item.FinalItemSpec); } }