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