Table of Contents

Interface IRoslynSolution

Namespace
Alternet.Syntax.Parsers.Roslyn
Assembly
Alternet.Syntax.Parsers.Roslyn.v9.dll

Represents properties and methods to service source code documents intended to use for Roslyn supported languages.

public interface IRoslynSolution : INotify, IUpdate

Properties

AssemblySearchPaths

When implemented by a class, gets or sets a collection of assembly search paths.

BaseDirectory

When implemented by a class, gets or sets solution base directory.

Conditionals

When implemented by a class, gets or sets a collection of conditional symbols

CustomXMLDocPath

When implemented by a class, gets a custom xml documentation path.

FrameworkPath

When implemented by a class, gets or sets path to the .NET Framework assemblies

ProjectId

When implemented by a class, gets a current Microsoft.CodeAnalysis.ProjectId.

ScriptSearchPaths

When implemented by a class, gets or sets a collection of script source search paths.

Solution

When implemented by a class, gets a current solution Microsoft.CodeAnalysis.Solution.

SourceKind

When implemented by a class, gets kind (regular or script) of the source code.

Workspace

When implemented by a class, gets a current project Microsoft.CodeAnalysis.Workspace.

Methods

AddDocument(string, SourceText, ProjectId, bool)

Adds a new document to the project.

AddDocument(string, string, ProjectId, bool)

When implemented by a class, adds a new document to the project.

AddProject(ProjectInfo)

When implemented by a class, adds a new project to this solution

AddProject(string, string)

When implemented by a class, adds project to the solution

AddReference(MetadataReference, ProjectId)

When implemented by a class, adds metadata reference to the project

CloseDocument(DocumentId)

When implemented by a class, closes specified document.

CreateDefaultProject()

When implemented by a class, creates and adds default project to this solution.

CreateProjectInfo(string, string)

When implemented by a class, creates a new project without adding it to the solution.

DocumentBelongsToDefaultProject(DocumentId)

When implemented by a class, indicates if document belongs to the default project.

FindDocument(string, ProjectId)

When implemented by a class, gets Microsoft.CodeAnalysis.Document matches the given file path.

GetProject(ProjectId)

When implemented by a class, gets or creates Project in the solution.

GetProject(string)

When implemented by a class, gets or creates Project in the solution.

IsDocumentOpen(DocumentId)

When implemented by a class, determines if document is already open in the workspace.

OpenDocument(DocumentId)

When implemented by a class, opens specified document if needed.

RegisterAssemblies(string[], ProjectId, TargetFramework)

When implemented by a class, replaces assemblies in the project with new ones.

RegisterAssembly(string, ProjectId)

When implemented by a class, registers assembly in the project.

RegisterCode(string, string, ProjectId)

When implemented by a class, makes types declared in given source file accessible for code analysis.

RegisterCodeFiles(string[], ProjectId)

When implemented by a class, makes types declared in given source files accessible for code analysis.

RegisterNamespaces(string[], ProjectId, string)

When implemented by a class, registers global namespaces.

RegisterProjectReferences(ProjectId[], ProjectId)

When implemented by a class, adds project references to the project.

RegisterProjectReferences(string[], ProjectId)

When implemented by a class, adds project references to the project.

RemoveDocument(DocumentId)

When implemented by a class, removes specified Microsoft.CodeAnalysis.Document from the project.

RemoveDocument(string, ProjectId)

When implemented by a class, removes specified document from the project.

RemoveProject(ProjectId)

When implemented by a class, removes project from the solution

ReplaceCodeFile(string, string, ProjectId)

Updates code completion with changes in the source file.

ReplaceDocument(DocumentId, SourceText)

When implemented by a class, updates Microsoft.CodeAnalysis.Document to have the text specified.

ReplaceDocument(DocumentId, string)

When implemented by a class, updates Microsoft.CodeAnalysis.Document to have the text specified.

SetProjectConditionals(string[], ProjectId)

When implemented by a class, sets conditional compilation symbols for given project

UnregisterAssemblies(string[], ProjectId)

When implemented by a class, unregisters assemblies from the project.

UnregisterAssembly(string, ProjectId)

When implemented by a class, unregisters assembly from the project.

UnregisterCode(string, ProjectId)

When implemented by a class, removes types declared in given source file from being accessible for code analysis.

UnregisterCodeFiles(string[], ProjectId)

When implemented by a class, removes types declared in given source files from being accessible for code analysis.

UnregisterProjectReferences(string[], ProjectId)

When implemented by a class, unregisters assemblies from the project.

WithDefaultAssemblies(TechnologyEnvironment, bool, ProjectId, TargetFramework, bool)

When implemented by a class, registers some most frequently used assemblies.

Specifies technology environment. Specifies whether existing assemblies should be preserved. Specifies project to add references to. Specifies target framework. In case of .NET Core, adds minimal set of references IRoslynSolution instance with default assemblies being registered for code completion