API Browser

Class

Solution

class Solution

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

Inheritance: Object → Solution

Immutable representation of a set of projects and documents. Acts as a facade over Raven.CodeAnalysis.SolutionInfo data and lazily creates Raven.CodeAnalysis.Project instances on demand.

Constructors

1 item

Properties

5 items
Id: SolutionId No summary available.
Projects: IEnumerable<Project> No summary available.
Services: HostServices No summary available.
Version: VersionStamp No summary available.
Workspace: Workspace? No summary available.

Methods

26 items
AddAnalyzerReference(projectId: ProjectId, reference: AnalyzerReference) -> Solution Adds an analyzer reference to the specified project.
AddGeneratorReference(projectId: ProjectId, reference: GeneratorReference) -> Solution Adds a source generator reference to the specified project.
AddMetadataReference(projectId: ProjectId, reference: MetadataReference) -> Solution Adds a metadata reference to the specified project.
AddProjectReference(projectId: ProjectId, reference: ProjectReference) -> Solution Adds a project reference to the specified project.
Equals(obj: object?) -> bool Determines whether the specified object is equal to the current object. Inherited from Object.Equals
GetDocument(id: DocumentId) -> Document? No summary available.
GetHashCode() -> int Serves as the default hash function. Inherited from Object.GetHashCode
GetProject(id: ProjectId) -> Project? No summary available.
GetType() -> Type Gets the System.Type of the current instance. Inherited from Object.GetType
RemoveDocument(id: DocumentId) -> Solution Removes a document from the specified project.
RemoveProject(id: ProjectId) -> Solution Removes the project with the specified identifier.
ToString() -> string? Returns a string that represents the current object. Inherited from Object.ToString
WithDocument(document: Document) -> Solution Replaces an existing document with the given instance.
WithDocumentText(id: DocumentId, newText: SourceText) -> Solution Creates a new solution with updated text for the specified document.