Invokes the MSBuild process with the supplied configuration.
Namespace: Microsoft.VisualStudio.Package
Assembly: MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)
Syntax
'宣言
Public Overridable Function Build ( _
vsopts As UInteger, _
config As String, _
output As IVsOutputWindowPane, _
target As String _
) As MSBuildResult
'使用
Dim instance As ProjectNode
Dim vsopts As UInteger
Dim config As String
Dim output As IVsOutputWindowPane
Dim target As String
Dim returnValue As MSBuildResult
returnValue = instance.Build(vsopts, config, _
output, target)
public virtual MSBuildResult Build(
uint vsopts,
string config,
IVsOutputWindowPane output,
string target
)
public:
virtual MSBuildResult Build(
unsigned int vsopts,
String^ config,
IVsOutputWindowPane^ output,
String^ target
)
public function Build(
vsopts : uint,
config : String,
output : IVsOutputWindowPane,
target : String
) : MSBuildResult
Parameters
vsopts
Type: System.UInt32Not used, pass in 0.
config
Type: System.StringThe name of the configuration to use.
output
Type: Microsoft.VisualStudio.Shell.Interop.IVsOutputWindowPaneThe output window.
target
Type: System.StringThe name of the target to build.
Return Value
Type: Microsoft.VisualStudio.Package.MSBuildResult
Sucessful if the call to [M:Microsoft.Build.BuildEngine.Project.Build (string targetName)] succeeds, 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.