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