Invokes MSBuild for the supplied target with the supplied configuration, and logs build errors to the output window. 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, _
output As IVsOutputWindowPane, _
target As String _
) As MSBuildResult
'使用
Dim instance As ProjectNode
Dim config As String
Dim output As IVsOutputWindowPane
Dim target As String
Dim returnValue As MSBuildResult
returnValue = instance.CallMSBuild(config, _
output, target)
public MSBuildResult CallMSBuild(
string config,
IVsOutputWindowPane output,
string target
)
public:
MSBuildResult CallMSBuild(
String^ config,
IVsOutputWindowPane^ output,
String^ target
)
public function CallMSBuild(
config : String,
output : IVsOutputWindowPane,
target : String
) : MSBuildResult
Parameters
config
Type: System.StringThe build configuration to use.
output
Type: Microsoft.VisualStudio.Shell.Interop.IVsOutputWindowPaneThe output window.
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.