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