2 writes to ImportedProject
Microsoft.Build (2)
Definition\ResolvedImport.cs (2)
26ImportedProject = importedProject; 40ImportedProject = importedProject;
21 references to ImportedProject
Microsoft.Build (19)
Definition\Project.cs (10)
2116if (import.ImportedProject.Version != import.VersionEvaluated || _evaluatedVersion < import.VersionEvaluated) 2120string reason = import.ImportedProject.LastDirtyReason; 2124Trace.WriteLine(String.Format(CultureInfo.InvariantCulture, "MSBUILD: Is dirty because {0} [{1} - {2}] [PC Hash {3}]", reason, FullPath, import.ImportedProject.FullPath == FullPath ? String.Empty : import.ImportedProject.FullPath, ProjectCollection.GetHashCode())); 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)) 3416if (_data.ImportClosure.Any(import => ReferenceEquals(import.ImportedProject, xmlRootElement))) 3979IEnumerable<ProjectRootElement> children = _data.ImportClosure.Where(resolvedImport => ReferenceEquals(resolvedImport.ImportingElement, import)).Select(triple => triple.ImportedProject);
Evaluation\Preprocessor.cs (3)
71AddToImportTable(entry.ImportingElement.XmlElement, entry.ImportedProject); 204AddToImportTable(xmlElement, import.ImportedProject); 215AddToImportTable(xmlElement, import.ImportedProject);
Instance\ProjectInstance.cs (6)
509if (import.ImportedProject != null) 511paths.Add(import.ImportedProject.FullPath); 524if (import.ImportedProject != null) 526paths.Add(import.ImportedProject.FullPath); 3417importPaths.Add(resolvedImport.ImportedProject.FullPath); 3430importPathsIncludingDuplicates.Add(resolvedImport.ImportedProject.FullPath);
NuGet.CommandLine.XPlat (2)
Utility\MSBuildAPIUtility.cs (2)
434ProjectRootElement directoryBuildPropsRootElement = project.Imports.FirstOrDefault(i => i.ImportedProject.FullPath.Equals(directoryPackagesPropsPath, PathUtility.GetStringComparisonBasedOnOS())).ImportedProject;