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)
2087if (import.ImportedProject.Version != import.VersionEvaluated || _evaluatedVersion < import.VersionEvaluated) 2091string reason = import.ImportedProject.LastDirtyReason; 2095Trace.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())); 2266if (import.ImportingElement != null && !import.ImportedProject.IsEphemeral) // Exclude outer project itself and SDK-resolver synthesized imports 2289if (import.ImportingElement != null && !import.ImportedProject.IsEphemeral) // Exclude outer project itself and SDK-resolver synthesized imports 2871foreach (ProjectRootElement import in _data.ImportClosure.Where(i => i.ImportingElement?.ImplicitImportLocation == ImplicitImportLocation.Top).Select(i => i.ImportedProject)) 2886foreach (ProjectRootElement import in _data.ImportClosure.Where(i => i.ImportingElement?.ImplicitImportLocation == ImplicitImportLocation.Bottom).Select(i => i.ImportedProject)) 3374if (_data.ImportClosure.Any(import => ReferenceEquals(import.ImportedProject, xmlRootElement))) 3937IEnumerable<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)
500if (import.ImportedProject != null) 502paths.Add(import.ImportedProject.FullPath); 515if (import.ImportedProject != null) 517paths.Add(import.ImportedProject.FullPath); 3345importPaths.Add(resolvedImport.ImportedProject.FullPath); 3358importPathsIncludingDuplicates.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;