Edit

Share via


ICodeCompiler.CompileAssemblyFromFile(CompilerParameters, String) Method

Definition

Compiles an assembly from the source code contained within the specified file, using the specified compiler settings.

C#
public System.CodeDom.Compiler.CompilerResults CompileAssemblyFromFile(System.CodeDom.Compiler.CompilerParameters options, string fileName);

Parameters

options
CompilerParameters

A CompilerParameters object that indicates the settings for compilation.

fileName
String

The file name of the file that contains the source code to compile.

Returns

A CompilerResults object that indicates the results of compilation.

Applies to

See also