Invokes MSBuild for the supplied target with the supplied configuration. If the build is suspended, waits until it is resumed to invoke it.
Namespace: Microsoft.VisualStudio.Package
Assembly: MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)
Syntax
'宣言
Public Function CallMSBuild ( _
config As String, _
target As String _
) As MSBuildResult
'使用
Dim instance As ProjectNode
Dim config As String
Dim target As String
Dim returnValue As MSBuildResult
returnValue = instance.CallMSBuild(config, _
target)
public MSBuildResult CallMSBuild(
string config,
string target
)
public:
MSBuildResult CallMSBuild(
String^ config,
String^ target
)
public function CallMSBuild(
config : String,
target : String
) : MSBuildResult
Parameters
config
Type: System.StringThe build configuration to use.
target
Type: System.StringThe target to build.
Return Value
Type: Microsoft.VisualStudio.Package.MSBuildResult
Sucessful if the build succeeded, Failed if it failed.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.