28 references to Imports
Microsoft.Build (5)
Evaluation\Preprocessor.cs (2)
62IList<ResolvedImport> imports = project.Imports; 137foreach (ResolvedImport resolvedImport in _project.Imports.Where(i => i.ImportingElement.ImplicitImportLocation != ImplicitImportLocation.None))
Instance\ProjectInstance.cs (2)
397this.CreateImportsSnapshot(project.Imports, project.ImportsIncludingDuplicates); 467var importsListConverter = new ImmutableStringValuedListConverter<ResolvedImport>(linkedProject.Imports, GetImportFullPath);
ObjectModelRemoting\DefinitionObjectsLinks\ProjectLink.cs (1)
74/// Access to remote <see cref="Project.Imports"/>.
Microsoft.Build.Engine.OM.UnitTests (8)
Definition\Project_Tests.cs (4)
610IList<ResolvedImport> imports = project.Imports; 1463project.Imports.First().ImportedProject.ShouldBeSameAs(import); 1548project.Imports.First().ImportedProject.ShouldBeSameAs(import); 1549newProject.Imports.First().ImportedProject.ShouldBeSameAs(import);
ObjectModelRemoting\Helpers\ViewValidation.evaluation.cs (2)
342Verify(view.Imports, real.Imports, Verify, context);
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectLink.cs (2)
52public IList<RemotedResolvedImport> Imports => this.Source.Imports.ConvertCollection<RemotedResolvedImport, ResolvedImport>((a) => a.Export(this.OwningCollection)); 55=> this.Source.Imports.ConvertCollection<RemotedResolvedImport, ResolvedImport>((a) => a.Export(this.OwningCollection));
Microsoft.Build.Engine.UnitTests (14)
Evaluation\Evaluator_Tests.cs (1)
923IList<ResolvedImport> imports = project.Imports;
Evaluation\Preprocessor_Tests.cs (1)
994var virtualImport = project.Imports.First(i => i.ImportedProject.FullPath.StartsWith(projectPath + ".SdkResolver"));
Evaluation\ProjectSdkImplicitImport_Tests.cs (12)
141Assert.Equal(2, project.Imports.Count); 143ResolvedImport initialResolvedImport = project.Imports[0]; 147ResolvedImport finalResolvedImport = project.Imports[1]; 208Assert.Equal(sdkNames.Count * 2, project.Imports.Count); 335Assert.Empty(project.Imports); 446project.Imports.Count.ShouldBe(2); 447var importElement = project.Imports[0].ImportingElement; 522project.Imports.Count.ShouldBe(2); 523var imports = project.Imports; 691project.Imports.Count.ShouldBe(2); 693foreach (var import in project.Imports) 704project.Imports.Count.ShouldBe(0);
TaskUsageLogger (1)
TaskUsageLogger.cs (1)
228foreach (ResolvedImport import in p.Imports)