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
Solution(services: HostServices, workspace?: Workspace?)
No summary available.
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.
AddDocument(id: DocumentId, name: string, text: SourceText, filePath?: string?) -> Solution
Adds a new document to the specified project.
AddGeneratorReference(projectId: ProjectId, reference: GeneratorReference) -> Solution
Adds a source generator reference to the specified project.
AddMacroReference(projectId: ProjectId, reference: MacroReference) -> Solution
No summary available.
AddMetadataReference(projectId: ProjectId, reference: MetadataReference) -> Solution
Adds a metadata reference to the specified project.
AddProject(id: ProjectId, name: string, filePath?: string?, assemblyName?: string?, compilationOptions?: CompilationOptions?, documentationOptions?: ProjectDocumentationOptions?, parseOptions?: ParseOptions?) -> Solution
Adds a new project with the specified id and name.
AddProject(name: string, filePath?: string?, assemblyName?: string?, compilationOptions?: CompilationOptions?, documentationOptions?: ProjectDocumentationOptions?, parseOptions?: ParseOptions?) -> Solution
Adds a new project with the specified name.
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
WithCompilationOptions(projectId: ProjectId, compilationOptions: CompilationOptions?) -> Solution
No summary available.
WithCompilerGeneratedFilesOutputPath(projectId: ProjectId, path: string?) -> Solution
No summary available.
WithDocument(document: Document) -> Solution
Replaces an existing document with the given instance.
WithDocumentationOptions(projectId: ProjectId, documentationOptions: ProjectDocumentationOptions?) -> Solution
No summary available.
WithDocumentText(id: DocumentId, newText: SourceText) -> Solution
Creates a new solution with updated text for the specified document.
WithGeneratorReferences(projectId: ProjectId, references: IEnumerable<GeneratorReference>) -> Solution
No summary available.
WithMacroReferences(projectId: ProjectId, references: IEnumerable<MacroReference>) -> Solution
No summary available.
WithMetadataReferences(projectId: ProjectId, references: IEnumerable<MetadataReference>) -> Solution
Replaces the metadata references for the specified project.
WithParseOptions(projectId: ProjectId, parseOptions: ParseOptions?) -> Solution
No summary available.
WithTargetFramework(projectId: ProjectId, targetFramework: string?) -> Solution
No summary available.