1 write to Attributes
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\ProjectInfo.cs (1)
167Attributes = attributes;
52 references to Attributes
Microsoft.CodeAnalysis.Features (4)
EditAndContinue\EditSession.cs (4)
852Telemetry.LogProjectAnalysisSummary(ProjectAnalysisSummary.ValidChanges, newProject.State.ProjectInfo.Attributes.TelemetryId, ImmutableArray.Create(mvidReadError.Descriptor.Id)); 937Telemetry.LogProjectAnalysisSummary(projectSummary, newProject.State.ProjectInfo.Attributes.TelemetryId, moduleDiagnostics.NullToEmpty().SelectAsArray(d => d.Descriptor.Id)); 950Telemetry.LogProjectAnalysisSummary(projectSummary, newProject.State.ProjectInfo.Attributes.TelemetryId, createBaselineDiagnostics); 1079Telemetry.LogProjectAnalysisSummary(projectSummary, newProject.State.ProjectInfo.Attributes.TelemetryId, emitResult.Diagnostics);
Microsoft.CodeAnalysis.Remote.ServiceHub (14)
Host\RemoteWorkspace.SolutionCreator.cs (14)
217project.State.ProjectInfo.Attributes.FixUpCompilationOptions( 299Contract.ThrowIfFalse(project.State.ProjectInfo.Attributes.Id == newProjectAttributes.Id); 300Contract.ThrowIfFalse(project.State.ProjectInfo.Attributes.Language == newProjectAttributes.Language); 301Contract.ThrowIfFalse(project.State.ProjectInfo.Attributes.IsSubmission == newProjectAttributes.IsSubmission); 305if (project.State.ProjectInfo.Attributes.Name != newProjectAttributes.Name) 310if (project.State.ProjectInfo.Attributes.AssemblyName != newProjectAttributes.AssemblyName) 315if (project.State.ProjectInfo.Attributes.FilePath != newProjectAttributes.FilePath) 320if (project.State.ProjectInfo.Attributes.OutputFilePath != newProjectAttributes.OutputFilePath) 325if (project.State.ProjectInfo.Attributes.OutputRefFilePath != newProjectAttributes.OutputRefFilePath) 330if (project.State.ProjectInfo.Attributes.CompilationOutputInfo != newProjectAttributes.CompilationOutputInfo) 335if (project.State.ProjectInfo.Attributes.DefaultNamespace != newProjectAttributes.DefaultNamespace) 340if (project.State.ProjectInfo.Attributes.HasAllInformation != newProjectAttributes.HasAllInformation) 345if (project.State.ProjectInfo.Attributes.RunAnalyzers != newProjectAttributes.RunAnalyzers) 350if (project.State.ProjectInfo.Attributes.ChecksumAlgorithm != newProjectAttributes.ChecksumAlgorithm)
Microsoft.CodeAnalysis.Workspaces (34)
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
298m["ProjectGuid"] = projectState.ProjectInfo.Attributes.TelemetryId.ToString("B");
Workspace\Solution\ProjectInfo.cs (29)
30public ProjectId Id => Attributes.Id; 35public VersionStamp Version => Attributes.Version; 40public string Name => Attributes.Name; 43internal (string? name, string? flavor) NameAndFlavor => Attributes.NameAndFlavor; 48public string AssemblyName => Attributes.AssemblyName; 53public string Language => Attributes.Language; 58public string? FilePath => Attributes.FilePath; 63public string? OutputFilePath => Attributes.OutputFilePath; 68public string? OutputRefFilePath => Attributes.OutputRefFilePath; 73public CompilationOutputInfo CompilationOutputInfo => Attributes.CompilationOutputInfo; 86internal string? DefaultNamespace => Attributes.DefaultNamespace; 91internal SourceHashAlgorithm ChecksumAlgorithm => Attributes.ChecksumAlgorithm; 96public bool IsSubmission => Attributes.IsSubmission; 103internal bool HasAllInformation => Attributes.HasAllInformation; 108internal bool RunAnalyzers => Attributes.RunAnalyzers; 295var newAttributes = attributes ?? Attributes; 306if (newAttributes == Attributes && 334=> With(attributes: Attributes.With(version: version)); 337=> With(attributes: Attributes.With(name: name ?? throw new ArgumentNullException(nameof(name)))); 340=> With(attributes: Attributes.With(assemblyName: assemblyName ?? throw new ArgumentNullException(nameof(assemblyName)))); 343=> With(attributes: Attributes.With(filePath: filePath)); 346=> With(attributes: Attributes.With(outputPath: outputFilePath)); 349=> With(attributes: Attributes.With(outputRefPath: outputRefFilePath)); 352=> With(attributes: Attributes.With(compilationOutputInfo: info)); 355=> With(attributes: Attributes.With(defaultNamespace: defaultNamespace)); 358=> With(attributes: Attributes.With(checksumAlgorithm: checksumAlgorithm)); 361=> With(attributes: Attributes.With(hasAllInformation: hasAllInformation)); 364=> With(attributes: Attributes.With(runAnalyzers: runAnalyzers)); 392return With(attributes: Attributes.With(telemetryId: telemetryId));
Workspace\Solution\ProjectState.cs (2)
102var loadTextOptions = new LoadTextOptions(projectInfoFixed.Attributes.ChecksumAlgorithm); 622=> ProjectInfo.Attributes;
Workspace\Solution\ProjectState_Checksum.cs (1)
56var infoChecksum = serializer.CreateChecksum(ProjectInfo.Attributes, cancellationToken);
Workspace\Solution\StateChecksums.cs (1)
155result[Info] = state.ProjectInfo.Attributes;