28 references to Imports
Microsoft.Build (5)
Evaluation\Preprocessor.cs (2)
62
IList<ResolvedImport> imports = project.
Imports
;
137
foreach (ResolvedImport resolvedImport in _project.
Imports
.Where(i => i.ImportingElement.ImplicitImportLocation != ImplicitImportLocation.None))
Instance\ProjectInstance.cs (2)
397
this.CreateImportsSnapshot(project.
Imports
, project.ImportsIncludingDuplicates);
467
var 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)
610
IList<ResolvedImport> imports = project.
Imports
;
1463
project.
Imports
.First().ImportedProject.ShouldBeSameAs(import);
1548
project.
Imports
.First().ImportedProject.ShouldBeSameAs(import);
1549
newProject.
Imports
.First().ImportedProject.ShouldBeSameAs(import);
ObjectModelRemoting\Helpers\ViewValidation.evaluation.cs (2)
342
Verify(view.
Imports
, real.
Imports
, Verify, context);
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectLink.cs (2)
52
public 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)
923
IList<ResolvedImport> imports = project.
Imports
;
Evaluation\Preprocessor_Tests.cs (1)
994
var virtualImport = project.
Imports
.First(i => i.ImportedProject.FullPath.StartsWith(projectPath + ".SdkResolver"));
Evaluation\ProjectSdkImplicitImport_Tests.cs (12)
141
Assert.Equal(2, project.
Imports
.Count);
143
ResolvedImport initialResolvedImport = project.
Imports
[0];
147
ResolvedImport finalResolvedImport = project.
Imports
[1];
208
Assert.Equal(sdkNames.Count * 2, project.
Imports
.Count);
335
Assert.Empty(project.
Imports
);
446
project.
Imports
.Count.ShouldBe(2);
447
var importElement = project.
Imports
[0].ImportingElement;
522
project.
Imports
.Count.ShouldBe(2);
523
var imports = project.
Imports
;
691
project.
Imports
.Count.ShouldBe(2);
693
foreach (var import in project.
Imports
)
704
project.
Imports
.Count.ShouldBe(0);
TaskUsageLogger (1)
TaskUsageLogger.cs (1)
228
foreach (ResolvedImport import in p.
Imports
)