3 instantiations of ResolvedImport
Microsoft.Build (3)
Definition\Project.cs (2)
4493ImportClosure.Add(new ResolvedImport(Project, importElement, import, versionEvaluated, sdkResult)); 4502ImportClosureWithDuplicates.Add(new ResolvedImport(Project, importElement, import, versionEvaluated, null));
ObjectModelRemoting\LinkedObjectFactory.cs (1)
121return new ResolvedImport(importingElement, importedProject, versionEvaluated, sdkResult, isImported);
58 references to ResolvedImport
Microsoft.Build (36)
Definition\Project.cs (14)
687public IList<ResolvedImport> Imports => implementation.Imports; 692public IList<ResolvedImport> ImportsIncludingDuplicates => implementation.ImportsIncludingDuplicates; 2079foreach (ResolvedImport import in _data.ImportClosure) 2252public override IList<ResolvedImport> Imports 2256var imports = new List<ResolvedImport>(_data.ImportClosure.Count - 1 /* outer project */); 2258foreach (ResolvedImport import in _data.ImportClosure) 2273public override IList<ResolvedImport> ImportsIncludingDuplicates 2279var imports = new List<ResolvedImport>(_data.ImportClosureWithDuplicates.Count - 1 /* outer project */); 2281foreach (var import in _data.ImportClosureWithDuplicates) 3743foreach (ResolvedImport import in _data.ImportClosure) 4238internal List<ResolvedImport> ImportClosure { get; private set; } 4244internal List<ResolvedImport> ImportClosureWithDuplicates { get; private set; } 4275ImportClosure = new List<ResolvedImport>(); 4276ImportClosureWithDuplicates = new List<ResolvedImport>();
Definition\ResolvedImport.cs (2)
22/// Initializes a new instance of the <see cref="ResolvedImport"/> struct. 36/// Initializes a new instance of the <see cref="ResolvedImport"/> struct.
Evaluation\Preprocessor.cs (10)
53private readonly Dictionary<XmlDocument, List<ResolvedImport>> _implicitImportsByProject = new Dictionary<XmlDocument, List<ResolvedImport>>(); 62IList<ResolvedImport> imports = project.Imports; 66foreach (ResolvedImport entry in imports) 137foreach (ResolvedImport resolvedImport in _project.Imports.Where(i => i.ImportingElement.ImplicitImportLocation != ImplicitImportLocation.None)) 140List<ResolvedImport> imports; 146_implicitImportsByProject[resolvedImport.ImportingElement.XmlDocument] = new List<ResolvedImport>(); 166List<ResolvedImport> implicitImports; 180foreach (ResolvedImport import in implicitImports.Where(i => i.ImportingElement.ImplicitImportLocation == ImplicitImportLocation.Top)) 206foreach (var import in implicitImports.Where(i => i.ImportingElement.ImplicitImportLocation == ImplicitImportLocation.Bottom))
Instance\ProjectInstance.cs (7)
467var importsListConverter = new ImmutableStringValuedListConverter<ResolvedImport>(linkedProject.Imports, GetImportFullPath); 471importsListConverter = new ImmutableStringValuedListConverter<ResolvedImport>(linkedProject.ImportsIncludingDuplicates, GetImportFullPath); 3231private void CreateImportsSnapshot(IList<ResolvedImport> importClosure, IList<ResolvedImport> importClosureWithDuplicates) 3234foreach (var resolvedImport in importClosure) 3247foreach (var resolvedImport in importClosureWithDuplicates) 3424private static string GetImportFullPath(ResolvedImport import)
ObjectModelRemoting\DefinitionObjectsLinks\ProjectLink.cs (2)
76public abstract IList<ResolvedImport> Imports { get; } 81public abstract IList<ResolvedImport> ImportsIncludingDuplicates { get; }
ObjectModelRemoting\LinkedObjectFactory.cs (1)
119public ResolvedImport Create(ProjectImportElement importingElement, ProjectRootElement importedProject, int versionEvaluated, SdkResult sdkResult, bool isImported)
Microsoft.Build.Engine.OM.UnitTests (14)
Definition\Project_Tests.cs (2)
390IList<ResolvedImport> imports = project.ImportsIncludingDuplicates; 610IList<ResolvedImport> imports = project.Imports;
ObjectModelRemoting\Helpers\ViewValidation.evaluation.cs (2)
285private static void Verify(ResolvedImport view, ResolvedImport real, ValidationContext context = null)
ObjectModelRemoting\RemoteProjectsProviderMock\DirectlyRemotedClasses.cs (4)
15internal static RemotedResolvedImport Export(this ResolvedImport resolvedImport, ProjectCollectionLinker exporter) 20internal static ResolvedImport Import(this RemotedResolvedImport remoted, ProjectCollectionLinker importer) 28public RemotedResolvedImport(ResolvedImport resolvedImport, ProjectCollectionLinker exporter) 44private ResolvedImport Import(ProjectCollectionLinker importer)
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectLink.cs (6)
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)); 152public override IList<ResolvedImport> Imports 153=> this.Proxy.Imports.ConvertCollection<ResolvedImport, RemotedResolvedImport>((a) => a.Import(this.Linker)); 155public override IList<ResolvedImport> ImportsIncludingDuplicates 156=> this.Proxy.ImportsIncludingDuplicates.ConvertCollection<ResolvedImport, RemotedResolvedImport>((a) => a.Import(this.Linker));
Microsoft.Build.Engine.UnitTests (7)
Evaluation\Evaluator_Tests.cs (2)
923IList<ResolvedImport> imports = project.Imports; 924IList<ResolvedImport> importsIncludingDuplicates = project.ImportsIncludingDuplicates;
Evaluation\Preprocessor_Tests.cs (1)
994var virtualImport = project.Imports.First(i => i.ImportedProject.FullPath.StartsWith(projectPath + ".SdkResolver"));
Evaluation\ProjectSdkImplicitImport_Tests.cs (4)
143ResolvedImport initialResolvedImport = project.Imports[0]; 147ResolvedImport finalResolvedImport = project.Imports[1]; 527var import = imports[i]; 693foreach (var import in project.Imports)
TaskUsageLogger (1)
TaskUsageLogger.cs (1)
228foreach (ResolvedImport import in p.Imports)