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