2 instantiations of ProjectFileInfo
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
MSBuild\ProjectFile\ProjectFileInfo.cs (2)
149
=>
new
(
166
=>
new
(
29 references to ProjectFileInfo
Microsoft.CodeAnalysis.Workspaces.MSBuild (28)
MSBuild\MSBuildProjectLoader.Worker.cs (10)
70
private readonly Dictionary<ProjectId,
ProjectFileInfo
> _projectIdToFileInfoMap;
102
_projectIdToFileInfoMap = new Dictionary<ProjectId,
ProjectFileInfo
>();
180
private async Task<ImmutableArray<
ProjectFileInfo
>> LoadProjectFileInfosAsync(string projectPath, DiagnosticReportingOptions reportingOptions, CancellationToken cancellationToken)
184
return ImmutableArray<
ProjectFileInfo
>.Empty; // Failure should already be reported.
200
ProjectFileInfo
.CreateEmpty(loader.Language, projectPath, projectFile.Log));
210
var results = ImmutableArray.CreateBuilder<
ProjectFileInfo
>(projectFileInfos.Length);
212
foreach (
var
projectFileInfo in projectFileInfos)
239
var idsAndFileInfos = new List<(ProjectId id,
ProjectFileInfo
fileInfo)>();
241
foreach (
var
projectFileInfo in projectFileInfos)
281
private Task<ProjectInfo> CreateProjectInfoAsync(
ProjectFileInfo
projectFileInfo, ProjectId projectId, bool addDiscriminator, CancellationToken cancellationToken)
MSBuild\MSBuildProjectLoader.Worker_ResolveReferences.cs (2)
186
private async Task<ResolvedReferences> ResolveReferencesAsync(ProjectId id,
ProjectFileInfo
projectFileInfo, CommandLineArguments commandLineArgs, CancellationToken cancellationToken)
344
foreach (
var
projectFileInfo in projectFileInfos)
MSBuild\ProjectFile\IProjectFile.cs (2)
31
/// instances of <see cref="
ProjectFileInfo
"/> if the project is multi-targeted: one for
34
Task<ImmutableArray<
ProjectFileInfo
>> GetProjectFileInfosAsync(CancellationToken cancellationToken);
MSBuild\ProjectFile\ProjectFile.cs (11)
47
public async Task<ImmutableArray<
ProjectFileInfo
>> GetProjectFileInfosAsync(CancellationToken cancellationToken)
51
return ImmutableArray.Create(
ProjectFileInfo
.CreateEmpty(Language, _loadedProject?.FullPath, Log));
64
var results = ImmutableArray.CreateBuilder<
ProjectFileInfo
>(targetFrameworks.Length);
74
var
projectFileInfo = await BuildProjectFileInfoAsync(cancellationToken).ConfigureAwait(false);
94
var
projectFileInfo = await BuildProjectFileInfoAsync(cancellationToken).ConfigureAwait(false);
95
projectFileInfo ??=
ProjectFileInfo
.CreateEmpty(Language, _loadedProject?.FullPath, Log);
100
private async Task<
ProjectFileInfo
> BuildProjectFileInfoAsync(CancellationToken cancellationToken)
104
return
ProjectFileInfo
.CreateEmpty(Language, _loadedProject?.FullPath, Log);
111
:
ProjectFileInfo
.CreateEmpty(Language, _loadedProject.FullPath, Log);
114
private
ProjectFileInfo
CreateProjectFileInfo(MSB.Execution.ProjectInstance project)
162
return
ProjectFileInfo
.Create(
MSBuild\ProjectFile\ProjectFileInfo.cs (2)
135
public static
ProjectFileInfo
Create(
165
public static
ProjectFileInfo
CreateEmpty(string language, string? filePath, DiagnosticLog log)
MSBuild\ProjectMap.cs (1)
143
internal ProjectId GetOrCreateProjectId(
ProjectFileInfo
projectFileInfo)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
VisualStudioMSBuildWorkspaceTests.cs (1)
3059
var
projectFileInfo = (await projectFile.GetProjectFileInfosAsync(CancellationToken.None)).Single();