UtilNetCodeCompilerCompileProject(String, String, 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,
string configurationName,
string platformName
)
Public Shared Function CompileProject (
filepath As String,
msbuildFilepath As String,
configurationName As String,
platformName As String
) As String
Dim filepath As String
Dim msbuildFilepath As String
Dim configurationName As String
Dim platformName As String
Dim returnValue As String
returnValue = UtilNetCodeCompiler.CompileProject(filepath,
msbuildFilepath, configurationName,
platformName)
public:
static String^ CompileProject(
String^ filepath,
String^ msbuildFilepath,
String^ configurationName,
String^ platformName
)
static member CompileProject :
filepath : string *
msbuildFilepath : string *
configurationName : string *
platformName : 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.
- configurationName String
-
The configuration name to compile. (e.g: "Release")
- platformName String
-
The platform name to compile. (e.g: "Any CPU")
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",
"Debug", "Any CPU")
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.
|