Invokes MSBuild on the supplied target with the default configuration and logs to the output window.
Namespace: Microsoft.VisualStudio.Package
Assembly: MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)
Syntax
'宣言
Public Function Build ( _
target As String, _
output As IVsOutputWindowPane _
) As MSBuildResult
'使用
Dim instance As ProjectNode
Dim target As String
Dim output As IVsOutputWindowPane
Dim returnValue As MSBuildResult
returnValue = instance.Build(target, output)
public MSBuildResult Build(
string target,
IVsOutputWindowPane output
)
public:
MSBuildResult Build(
String^ target,
IVsOutputWindowPane^ output
)
public function Build(
target : String,
output : IVsOutputWindowPane
) : MSBuildResult
Parameters
target
Type: System.StringThe target to build.
output
Type: Microsoft.VisualStudio.Shell.Interop.IVsOutputWindowPaneThe output window.
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.