2 writes to ProjectInfo
Microsoft.CodeAnalysis.Workspaces (2)
Workspace\Solution\ProjectState.cs (2)
88ProjectInfo = ClearAllDocumentsFromProjectInfo(projectInfo); 126ProjectInfo = ClearAllDocumentsFromProjectInfo(projectInfoFixed);
47 references to ProjectInfo
Microsoft.CodeAnalysis.Workspaces (47)
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
341m["ProjectGuid"] = projectState.ProjectInfo.Attributes.TelemetryId.ToString("B");
Workspace\Solution\ProjectState.cs (41)
356var extension = ProjectInfo.Language switch 368if (!PathUtilities.IsAbsolute(ProjectInfo.FilePath)) 379var projectDirectory = PathUtilities.GetDirectoryName(ProjectInfo.FilePath); 634public ProjectId Id => this.ProjectInfo.Id; 637public string? FilePath => this.ProjectInfo.FilePath; 640public string? OutputFilePath => this.ProjectInfo.OutputFilePath; 643public string? OutputRefFilePath => this.ProjectInfo.OutputRefFilePath; 646public CompilationOutputInfo CompilationOutputInfo => this.ProjectInfo.CompilationOutputInfo; 649public string? DefaultNamespace => this.ProjectInfo.DefaultNamespace; 652public SourceHashAlgorithm ChecksumAlgorithm => this.ProjectInfo.ChecksumAlgorithm; 658public string Name => this.ProjectInfo.Name; 662public (string? name, string? flavor) NameAndFlavor => this.ProjectInfo.NameAndFlavor; 665public bool IsSubmission => this.ProjectInfo.IsSubmission; 668public Type? HostObjectType => this.ProjectInfo.HostObjectType; 674public VersionStamp Version => this.ProjectInfo.Version; 680public string AssemblyName => this.ProjectInfo.AssemblyName; 683public CompilationOptions? CompilationOptions => this.ProjectInfo.CompilationOptions; 686public ParseOptions? ParseOptions => this.ProjectInfo.ParseOptions; 689public IReadOnlyList<MetadataReference> MetadataReferences => this.ProjectInfo.MetadataReferences; 692public IReadOnlyList<AnalyzerReference> AnalyzerReferences => this.ProjectInfo.AnalyzerReferences; 695public IReadOnlyList<ProjectReference> ProjectReferences => this.ProjectInfo.ProjectReferences; 698public bool HasAllInformation => this.ProjectInfo.HasAllInformation; 701public bool RunAnalyzers => this.ProjectInfo.RunAnalyzers; 704internal bool HasSdkCodeStyleAnalyzers => this.ProjectInfo.HasSdkCodeStyleAnalyzers; 716projectInfo ?? ProjectInfo, 727=> ProjectInfo.Attributes; 730/// Updates <see cref="ProjectInfo"/> to a newer version of attributes. 737return With(projectInfo: ProjectInfo.With(attributes: attributes)); 778projectInfo: ProjectInfo.With(attributes: Attributes.With(checksumAlgorithm: checksumAlgorithm, version: Version.GetNewerVersion())), 799return With(projectInfo: ProjectInfo.WithCompilationOptions(options.WithSyntaxTreeOptionsProvider(newProvider)) 819projectInfo: ProjectInfo.WithParseOptions(options).WithVersion(Version.GetNewerVersion()), 861return With(projectInfo: ProjectInfo.With(projectReferences: projectReferences).WithVersion(Version.GetNewerVersion())); 871return With(projectInfo: ProjectInfo.With(metadataReferences: metadataReferences).WithVersion(Version.GetNewerVersion())); 881return With(projectInfo: ProjectInfo.WithAnalyzerReferences(analyzerReferences).WithVersion(Version.GetNewerVersion())); 892projectInfo: ProjectInfo.WithVersion(Version.GetNewerVersion()), 904projectInfo: ProjectInfo.WithVersion(Version.GetNewerVersion()), 923var projectInfo = ProjectInfo.WithVersion(Version.GetNewerVersion()); 947projectInfo: ProjectInfo.WithVersion(Version.GetNewerVersion()), 958projectInfo: ProjectInfo.WithVersion(Version.GetNewerVersion()), 980projectInfo: ProjectInfo.WithVersion(Version.GetNewerVersion()), 1054projectInfo: ProjectInfo.WithVersion(Version.GetNewerVersion()),
Workspace\Solution\ProjectState_Checksum.cs (1)
53var infoChecksum = this.ProjectInfo.Attributes.Checksum;
Workspace\Solution\SolutionCompilationState.cs (2)
567if (oldProject.ProjectInfo.Attributes.Language != attributes.Language) 572if (oldProject.ProjectInfo.Attributes.IsSubmission != attributes.IsSubmission)
Workspace\Solution\SolutionState.cs (1)
1355if (!includeDifferentLanguages && projectState.ProjectInfo.Language != language)
Workspace\Solution\StateChecksums.cs (1)
449onAssetFound(Info, state.ProjectInfo.Attributes, arg);