Search Results for

    Show / Hide Table of Contents
    View Source

    Class RoslynCompiler

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Infrastructure.ModelsBuilder
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class RoslynCompiler

    Constructors

    View Source

    RoslynCompiler()

    Initializes a new instance of the RoslynCompiler class.

    Declaration
    public RoslynCompiler()
    Remarks

    Roslyn compiler which can be used to compile a c# file to a Dll assembly

    Fields

    View Source

    GeneratedAssemblyName

    Declaration
    public const string GeneratedAssemblyName = "ModelsGeneratedAssembly"
    Field Value
    Type Description
    System.String

    Methods

    View Source

    CompileToFile(String, String)

    Compile a source file to a dll

    Declaration
    public void CompileToFile(string pathToSourceFile, string savePath)
    Parameters
    Type Name Description
    System.String pathToSourceFile

    Path to the source file containing the code to be compiled.

    System.String savePath

    The path where the output assembly will be saved.

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • RoslynCompiler()
    • Fields
      • GeneratedAssemblyName
    • Methods
      • CompileToFile(String, String)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX