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
assemblyPathstringThe script assembly file path.
assemblyFileNamestringThe script assembly file name.
assemblyTargetstringThe assembly target, dll, console and so on.
generateOnDiskboolSpecifies whether compilation result should be saved on the disk.
referencesIList<string>List of external assemblies referenced from the script.
fileNamesstring[]List of file names to be compiled.
resourceFilesstring[]List of embedded resource files.
Returns
- CompileResult
Result of the compilation.