UtilNetCodeCompilerCompileProject(String, String) Method

Compiles a Visual Studio project or solution.

Definition

Namespace: DevCase.Core.Diagnostics.CodeCompilation
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static string CompileProject(
	string filepath,
	string msbuildFilepath
)

Parameters

filepath  String
The Visual Studio project or solution file.
msbuildFilepath  String
The msbuild.exe compiler filepath.

Return Value

String
If the compiler operation succeeds, the return value is String, otherwise, the return value contains the error output generated by the compiler.

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

Exceptions

FileNotFoundException 'msbuild.exe' not found.

See Also