Class RoslynCompiler
Inheritance
System.Object
Namespace: Umbraco.Cms.Infrastructure.ModelsBuilder
Assembly: cs.temp.dll.dll
Syntax
public class RoslynCompiler
Constructors
RoslynCompiler()
Initializes a new instance of the Roslyn
Declaration
public RoslynCompiler()
Remarks
Roslyn compiler which can be used to compile a c# file to a Dll assembly
Fields
GeneratedAssemblyName
Declaration
public const string GeneratedAssemblyName = "ModelsGeneratedAssembly"
Field Value
Type | Description |
---|---|
System. |
Methods
CompileToFile(String, String)
Compile a source file to a dll
Declaration
public void CompileToFile(string pathToSourceFile, string savePath)
Parameters
Type | Name | Description |
---|---|---|
System. |
pathToSourceFile | Path to the source file containing the code to be compiled. |
System. |
savePath | The path where the output assembly will be saved. |