API Browser

Class

Project

class Project

Namespace: Raven.CodeAnalysis
Assembly: Raven.CodeAnalysis.dll
Source file: Project.cs

Inheritance: Object → Project

Represents a project within a Raven.CodeAnalysis.Project.Solution. Acts as a facade over immutable Raven.CodeAnalysis.ProjectInfo data and owns a set of Raven.CodeAnalysis.Documents.

Properties

17 items
AnalyzerReferences: IReadOnlyList<AnalyzerReference> An analyzer references for this project.
AssemblyName: string? The explicit assembly name for this project, if any.
CompilationOptions: CompilationOptions? The compilation options for this project.
CompilerGeneratedFilesOutputPath: string? The optional directory for emitted source-generator files.
DocumentationOptions: ProjectDocumentationOptions? Documentation emission settings for this project, if any.
Documents: IEnumerable<Document> All documents in the project.
FilePath: string? The path to the project file on disk.
GeneratorReferences: IReadOnlyList<GeneratorReference> Source generator references for this project.
Id: ProjectId The identifier for this project.
MacroReferences: IReadOnlyList<MacroReference> Macro references for this project.
MetadataReferences: IReadOnlyList<MetadataReference> Metadata references for this project.
Name: string The name of the project.
ParseOptions: ParseOptions? The parse options applied to source documents in this project.
ProjectReferences: IReadOnlyList<ProjectReference> Project-to-project references.
Solution: Solution The solution that contains this project.
TargetFramework: string? The target framework for this project, if any.
Version: VersionStamp The current version of the project.

Methods

16 items
AddAnalyzerReference(analyzerReference: AnalyzerReference) -> Project Adds an analyzer reference to this project.
AddDocument(id: DocumentId, name: string, text: SourceText, filePath?: string?) -> Document Adds a new document to this project and returns the resulting Raven.CodeAnalysis.Document.
AddDocument(name: string, text: SourceText, filePath?: string?) -> Document Adds a new document with an automatically generated identifier.
AddGeneratorReference(generatorReference: GeneratorReference) -> Project Adds a source generator reference to this project.
AddMetadataReference(metadataReference: MetadataReference) -> Project Adds a metadata reference to this project and returns the resulting Raven.CodeAnalysis.Project.
Equals(obj: object?) -> bool Determines whether the specified object is equal to the current object. Inherited from Object.Equals
GetDocument(id: DocumentId) -> Document? Gets a document by its identifier.
GetHashCode() -> int Serves as the default hash function. Inherited from Object.GetHashCode
GetType() -> Type Gets the System.Type of the current instance. Inherited from Object.GetType
ToString() -> string? Returns a string that represents the current object. Inherited from Object.ToString
WithCompilationOptions(options: CompilationOptions?) -> Project Creates a new project with the specified Raven.CodeAnalysis.Project.CompilationOptions.