2 writes to ImportingElement
Microsoft.Build (2)
Definition\ResolvedImport.cs (2)
28ImportingElement = importingElement; 42ImportingElement = importingElement;
24 references to ImportingElement
Microsoft.Build (16)
Definition\Project.cs (5)
2260if (import.ImportingElement != null) // Exclude outer project itself 2283if (import.ImportingElement != null) // Exclude outer project itself 2862foreach (ProjectRootElement import in _data.ImportClosure.Where(i => i.ImportingElement?.ImplicitImportLocation == ImplicitImportLocation.Top).Select(i => i.ImportedProject)) 2877foreach (ProjectRootElement import in _data.ImportClosure.Where(i => i.ImportingElement?.ImplicitImportLocation == ImplicitImportLocation.Bottom).Select(i => i.ImportedProject)) 3927IEnumerable<ProjectRootElement> children = _data.ImportClosure.Where(resolvedImport => ReferenceEquals(resolvedImport.ImportingElement, import)).Select(triple => triple.ImportedProject);
Evaluation\Preprocessor.cs (9)
68AddToImportTable(entry.ImportingElement.XmlElement, entry.ImportedProject); 137foreach (ResolvedImport resolvedImport in _project.Imports.Where(i => i.ImportingElement.ImplicitImportLocation != ImplicitImportLocation.None)) 143if (!_implicitImportsByProject.TryGetValue(resolvedImport.ImportingElement.XmlDocument, out imports)) 146_implicitImportsByProject[resolvedImport.ImportingElement.XmlDocument] = new List<ResolvedImport>(); 149imports = _implicitImportsByProject[resolvedImport.ImportingElement.XmlDocument]; 180foreach (ResolvedImport import in implicitImports.Where(i => i.ImportingElement.ImplicitImportLocation == ImplicitImportLocation.Top)) 182XmlElement xmlElement = (XmlElement)documentElement.OwnerDocument.ImportNode(import.ImportingElement.XmlElement, false); 206foreach (var import in implicitImports.Where(i => i.ImportingElement.ImplicitImportLocation == ImplicitImportLocation.Bottom)) 208XmlElement xmlElement = (XmlElement)documentElement.InsertAfter(documentElement.OwnerDocument.ImportNode(import.ImportingElement.XmlElement, false), documentElement.LastChild);
Instance\ProjectInstance.cs (2)
3237if (resolvedImport.ImportingElement != null) 3250if (resolvedImport.ImportingElement != null)
Microsoft.Build.Engine.OM.UnitTests (4)
Definition\Project_Tests.cs (1)
612object.ReferenceEquals(imports.First().ImportingElement, xml.Imports.ElementAt(0)).ShouldBeTrue();
ObjectModelRemoting\Helpers\ViewValidation.evaluation.cs (2)
288Verify(view.ImportingElement, real.ImportingElement);
ObjectModelRemoting\RemoteProjectsProviderMock\DirectlyRemotedClasses.cs (1)
30this.ImportingElement = exporter.Export<ProjectElement, MockProjectImportElementLinkRemoter>(resolvedImport.ImportingElement);
Microsoft.Build.Engine.UnitTests (4)
Evaluation\Evaluator_Tests.cs (1)
1011bool circularImportsAreRecorded = project.ImportsIncludingDuplicates.Any(resolvedImport => string.Equals(resolvedImport.ImportingElement.ContainingProject.FullPath, importPath2, StringComparison.OrdinalIgnoreCase));
Evaluation\ProjectSdkImplicitImport_Tests.cs (3)
447var importElement = project.Imports[0].ImportingElement; 528var importingElement = import.ImportingElement; 695import.ImportingElement.SdkReference.ShouldBe(expectedSdkReferenceRaw);