2 writes to ImportedProject
Microsoft.Build (2)
Definition\ResolvedImport.cs (2)
29ImportedProject = importedProject; 43ImportedProject = importedProject;
26 references to ImportedProject
Microsoft.Build (14)
Definition\Project.cs (8)
2081if (import.ImportedProject.Version != import.VersionEvaluated || _evaluatedVersion < import.VersionEvaluated) 2085string reason = import.ImportedProject.LastDirtyReason; 2089Trace.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())); 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)) 3365if (_data.ImportClosure.Any(import => ReferenceEquals(import.ImportedProject, xmlRootElement))) 3927IEnumerable<ProjectRootElement> children = _data.ImportClosure.Where(resolvedImport => ReferenceEquals(resolvedImport.ImportingElement, import)).Select(triple => triple.ImportedProject);
Evaluation\Preprocessor.cs (3)
68AddToImportTable(entry.ImportingElement.XmlElement, entry.ImportedProject); 201AddToImportTable(xmlElement, import.ImportedProject); 212AddToImportTable(xmlElement, import.ImportedProject);
Instance\ProjectInstance.cs (3)
3239importPaths.Add(resolvedImport.ImportedProject.FullPath); 3252importPathsIncludingDuplicates.Add(resolvedImport.ImportedProject.FullPath); 3426return import.ImportedProject.FullPath;
Microsoft.Build.Engine.OM.UnitTests (7)
Definition\Project_Tests.cs (4)
616object.ReferenceEquals(imports.First().ImportedProject, ProjectRootElement.Open(importPath)).ShouldBeTrue(); 1463project.Imports.First().ImportedProject.ShouldBeSameAs(import); 1548project.Imports.First().ImportedProject.ShouldBeSameAs(import); 1549newProject.Imports.First().ImportedProject.ShouldBeSameAs(import);
ObjectModelRemoting\Helpers\ViewValidation.evaluation.cs (2)
289Verify(view.ImportedProject, real.ImportedProject);
ObjectModelRemoting\RemoteProjectsProviderMock\DirectlyRemotedClasses.cs (1)
31this.ImportedProject = exporter.Export<ProjectElement, MockProjectRootElementLinkRemoter>(resolvedImport.ImportedProject);
Microsoft.Build.Engine.UnitTests (4)
Evaluation\Preprocessor_Tests.cs (2)
994var virtualImport = project.Imports.First(i => i.ImportedProject.FullPath.StartsWith(projectPath + ".SdkResolver")); 995string virtualProjectPath = virtualImport.ImportedProject.FullPath;
Evaluation\ProjectSdkImplicitImport_Tests.cs (2)
144Assert.Equal(_sdkPropsPath, initialResolvedImport.ImportedProject.FullPath); 148Assert.Equal(_sdkTargetsPath, finalResolvedImport.ImportedProject.FullPath);
TaskUsageLogger (1)
TaskUsageLogger.cs (1)
230GatherAndEvaluatedTasksInFile(import.ImportedProject, p, usingTasks);