Class RoslynScriptProvider
Provides a base class for Roslyn code generation. This class is abstract.
public abstract class RoslynScriptProvider : IDisposable
- Inheritance
-
RoslynScriptProvider
- Implements
- Derived
Constructors
- RoslynScriptProvider(IScriptHost, SourceCodeKind)
Initializes a new instance of the
RoslynScriptProvider
class with specifiedIScriptHost
.
Properties
- AssemblyBytes
Gets assembly bytes when the script is compiled in the memory.
- 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
.
- DebugBytes
Gets pdb bytes when the script is compiled in the memory.
- EmbeddedResources
List of the compilation's managed resources. Null to indicate that there are none.
- PDBTargetPath
Represents the .pdb file path.
- ScriptAssembly
Gets compiled script assembly.
- ScriptCompiled
Indicates whether script has been successfully compiled.
- Workspace
Gets a current project or code
Microsoft.CodeAnalysis.Workspace
.
Methods
- Compile(bool, bool)
Compiles the script.
- Dispose()
Destroys the instance of the
RoslynScriptProvider
class.
- ReferencesDotNetCoreRuntime(out Version)
Detects version of the DotNET Core installed on the PC.