Table of Contents

Method Compile

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

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

Compiles the script.

public CompileResult Compile(string assemblyPath, string assemblyFileName, string assemblyTarget, bool generateOnDisk, IList<string> references, string[] fileNames, string[] resourceFiles)

Parameters

assemblyPath string

The script assembly file path.

assemblyFileName string

The script assembly file name.

assemblyTarget string

The assembly target, dll, console and so on.

generateOnDisk bool

Specifies whether compilation result should be saved on the disk.

references IList<string>

List of external assemblies referenced from the script.

fileNames string[]

List of file names to be compiled.

resourceFiles string[]

List of embedded resource files.

Returns

CompileResult

Result of the compilation.