ICodeCompiler.CompileAssemblyFromFile(CompilerParameters, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Compiles an assembly from the source code contained within the specified file, using the specified compiler settings.
public:
System::CodeDom::Compiler::CompilerResults ^ CompileAssemblyFromFile(System::CodeDom::Compiler::CompilerParameters ^ options, System::String ^ fileName);
public System.CodeDom.Compiler.CompilerResults CompileAssemblyFromFile (System.CodeDom.Compiler.CompilerParameters options, string fileName);
abstract member CompileAssemblyFromFile : System.CodeDom.Compiler.CompilerParameters * string -> System.CodeDom.Compiler.CompilerResults
Public Function CompileAssemblyFromFile (options As CompilerParameters, fileName As String) As CompilerResults
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
Bekerjasama dengan kami di GitHub
Sumber untuk kandungan ini boleh didapati di GitHub, di mana anda juga boleh mencipta dan menyemak isu dan menarik permintaan. Untuk maklumat lanjut, lihat panduan penyumbang kami.