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