2 writes to ImportingElement
Microsoft.Build (2)
Definition\ResolvedImport.cs (2)
25ImportingElement = importingElement; 39ImportingElement = importingElement;
16 references to ImportingElement
Microsoft.Build (16)
Definition\Project.cs (5)
2307if (import.ImportingElement != null && !import.ImportedProject.IsEphemeral) // Exclude outer project itself and SDK-resolver synthesized imports 2330if (import.ImportingElement != null && !import.ImportedProject.IsEphemeral) // Exclude outer project itself and SDK-resolver synthesized imports 2912foreach (ProjectRootElement import in _data.ImportClosure.Where(i => i.ImportingElement?.ImplicitImportLocation == ImplicitImportLocation.Top).Select(i => i.ImportedProject)) 2927foreach (ProjectRootElement import in _data.ImportClosure.Where(i => i.ImportingElement?.ImplicitImportLocation == ImplicitImportLocation.Bottom).Select(i => i.ImportedProject)) 3979IEnumerable<ProjectRootElement> children = _data.ImportClosure.Where(resolvedImport => ReferenceEquals(resolvedImport.ImportingElement, import)).Select(triple => triple.ImportedProject);
Evaluation\Preprocessor.cs (9)
71AddToImportTable(entry.ImportingElement.XmlElement, entry.ImportedProject); 140foreach (ResolvedImport resolvedImport in _project.Imports.Where(i => i.ImportingElement.ImplicitImportLocation != ImplicitImportLocation.None)) 146if (!_implicitImportsByProject.TryGetValue(resolvedImport.ImportingElement.XmlDocument, out imports)) 149_implicitImportsByProject[resolvedImport.ImportingElement.XmlDocument] = new List<ResolvedImport>(); 152imports = _implicitImportsByProject[resolvedImport.ImportingElement.XmlDocument]; 183foreach (ResolvedImport import in implicitImports.Where(i => i.ImportingElement.ImplicitImportLocation == ImplicitImportLocation.Top)) 185XmlElement xmlElement = (XmlElement)documentElement.OwnerDocument.ImportNode(import.ImportingElement.XmlElement, false); 209foreach (var import in implicitImports.Where(i => i.ImportingElement.ImplicitImportLocation == ImplicitImportLocation.Bottom)) 211XmlElement xmlElement = (XmlElement)documentElement.InsertAfter(documentElement.OwnerDocument.ImportNode(import.ImportingElement.XmlElement, false), documentElement.LastChild);
Instance\ProjectInstance.cs (2)
3415if (resolvedImport.ImportingElement != null) 3428if (resolvedImport.ImportingElement != null)