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)
2104if (import.ImportedProject.Version != import.VersionEvaluated || _evaluatedVersion < import.VersionEvaluated) 2108string reason = import.ImportedProject.LastDirtyReason; 2112Trace.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())); 2295if (import.ImportingElement != null && !import.ImportedProject.IsEphemeral) // Exclude outer project itself and SDK-resolver synthesized imports 2318if (import.ImportingElement != null && !import.ImportedProject.IsEphemeral) // Exclude outer project itself and SDK-resolver synthesized imports 2742foreach (ProjectRootElement import in _data.ImportClosure.Where(i => i.ImportingElement?.ImplicitImportLocation == ImplicitImportLocation.Top).Select(i => i.ImportedProject)) 2757foreach (ProjectRootElement import in _data.ImportClosure.Where(i => i.ImportingElement?.ImplicitImportLocation == ImplicitImportLocation.Bottom).Select(i => i.ImportedProject)) 3246if (_data.ImportClosure.Any(import => ReferenceEquals(import.ImportedProject, xmlRootElement))) 3809IEnumerable<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)
435ProjectRootElement directoryBuildPropsRootElement = project.Imports.FirstOrDefault(i => i.ImportedProject.FullPath.Equals(directoryPackagesPropsPath, PathUtility.GetStringComparisonBasedOnOS())).ImportedProject;