1 write to Attributes
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\ProjectInfo.cs (1)
169Attributes = attributes;
40 references to Attributes
Microsoft.CodeAnalysis.Workspaces (40)
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
341m["ProjectGuid"] = projectState.ProjectInfo.Attributes.TelemetryId.ToString("B");
Workspace\Solution\ProjectInfo.cs (32)
27public ProjectId Id => Attributes.Id; 32public VersionStamp Version => Attributes.Version; 37public string Name => Attributes.Name; 40internal (string? name, string? flavor) NameAndFlavor => Attributes.NameAndFlavor; 45public string AssemblyName => Attributes.AssemblyName; 50public string Language => Attributes.Language; 55public string? FilePath => Attributes.FilePath; 60public string? OutputFilePath => Attributes.OutputFilePath; 65public string? OutputRefFilePath => Attributes.OutputRefFilePath; 70public CompilationOutputInfo CompilationOutputInfo => Attributes.CompilationOutputInfo; 83internal string? DefaultNamespace => Attributes.DefaultNamespace; 88internal SourceHashAlgorithm ChecksumAlgorithm => Attributes.ChecksumAlgorithm; 93public bool IsSubmission => Attributes.IsSubmission; 100internal bool HasAllInformation => Attributes.HasAllInformation; 105internal bool RunAnalyzers => Attributes.RunAnalyzers; 110internal bool HasSdkCodeStyleAnalyzers => Attributes.HasSdkCodeStyleAnalyzers; 297var newAttributes = attributes ?? Attributes; 308if (newAttributes == Attributes && 336=> With(attributes: Attributes.With(id: id ?? throw new ArgumentNullException(nameof(id)))); 339=> With(attributes: Attributes.With(version: version)); 342=> With(attributes: Attributes.With(name: name ?? throw new ArgumentNullException(nameof(name)))); 345=> With(attributes: Attributes.With(assemblyName: assemblyName ?? throw new ArgumentNullException(nameof(assemblyName)))); 348=> With(attributes: Attributes.With(filePath: filePath)); 351=> With(attributes: Attributes.With(outputPath: outputFilePath)); 354=> With(attributes: Attributes.With(outputRefPath: outputRefFilePath)); 357=> With(attributes: Attributes.With(compilationOutputInfo: info)); 360=> With(attributes: Attributes.With(defaultNamespace: defaultNamespace)); 363=> With(attributes: Attributes.With(checksumAlgorithm: checksumAlgorithm)); 366=> With(attributes: Attributes.With(hasAllInformation: hasAllInformation)); 369=> With(attributes: Attributes.With(runAnalyzers: runAnalyzers)); 397return With(attributes: Attributes.With(telemetryId: telemetryId)); 402return With(attributes: Attributes.With(hasSdkCodeStyleAnalyzers: hasSdkCodeStyleAnalyzers));
Workspace\Solution\ProjectState.cs (2)
99var loadTextOptions = new LoadTextOptions(projectInfoFixed.Attributes.ChecksumAlgorithm); 727=> ProjectInfo.Attributes;
Workspace\Solution\ProjectState_Checksum.cs (1)
53var infoChecksum = this.ProjectInfo.Attributes.Checksum;
Workspace\Solution\SolutionCompilationState.cs (3)
567if (oldProject.ProjectInfo.Attributes.Language != attributes.Language) 572if (oldProject.ProjectInfo.Attributes.IsSubmission != attributes.IsSubmission) 594var newState = WithProjectAttributes(info.Attributes)
Workspace\Solution\StateChecksums.cs (1)
449onAssetFound(Info, state.ProjectInfo.Attributes, arg);