UtilNetCodeCompilerCompileProject(String, String) Method
Compiles a Visual Studio project or solution.
Namespace: DevCase.Core.Diagnostics.CodeCompilationAssembly: 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
)
Public Shared Function CompileProject (
filepath As String,
msbuildFilepath As String
) As String
Dim filepath As String
Dim msbuildFilepath As String
Dim returnValue As String
returnValue = UtilNetCodeCompiler.CompileProject(filepath,
msbuildFilepath)
public:
static String^ CompileProject(
String^ filepath,
String^ msbuildFilepath
)
static member CompileProject :
filepath : string *
msbuildFilepath : string -> string
No code example is currently available or this language may not be supported.
- filepath String
-
The Visual Studio project or solution file.
- msbuildFilepath String
-
The msbuild.exe compiler filepath.
String
If the compiler operation succeeds, the return value is
String,
otherwise, the return value contains the error output generated by the compiler.
This is a code example.
No code example is currently available or this language may not be supported.
Dim compileResult As String = CompileProject("C:\Solution.sln", "C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe")
If Not String.IsNullOrEmpty(compileResult) Then
' Show error output...
MessageBox.Show(compileResult)
End If
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
FileNotFoundException
|
'msbuild.exe' not found.
|