Table of Contents

Class RoslynScriptProvider

Namespace
Alternet.FormDesigner.Wpf.Roslyn
Assembly
Alternet.FormDesigner.Roslyn.Wpf.v10.dll

Provides a base class for Roslyn code generation. This class is abstract.

public abstract class RoslynScriptProvider : IDisposable
Inheritance
RoslynScriptProvider
Implements
Derived

Properties

Assembly

Gets compiled script assembly.

AssemblyFileName

Gets or sets script assembly file name.

AssemblyPath

Gets or sets script assembly file path.

AssemblyTargetPath

Represents the fully qualified path of the assembly file.

Compilation

Gets a current project or code Microsoft.CodeAnalysis.Compilation.

EmbeddedResources

List of the compilation's managed resources. Null to indicate that there are none.

FrameworkPath

Gets or sets a location of .NET Framework assemblies.

References

Gets or sets a list of external assemblies referenced from the script.

SourceResolver

Methods

AddManifestResource(string, string)
AddResource(string, string)
Compile(string, string, string, bool, IList<string>, string[], string[])

Compiles the script.

CreateCompilation(IList<SyntaxTree>, IList<MetadataReference>)
CreateCompilation(string[], string[])
CreateFilesCompilation(string[], string[])
Dispose()

Destroys the instance of the RoslynScriptProvider class.

Dispose(bool)
GetCompilationOptions()
GetOutputKind()
GetParserOptions()
LoadAssemblyFromCache()
LoadScript(string)
ParseCode(IList<SyntaxTree>, string, string)
ResolveReferences()
SaveAssembly(byte[])