Valid TaskActions are:

AddReference (Required: Application, References Optional: MachineName, DatabaseServer, Database)

CheckExists (Required: Application Optional: MachineName, DatabaseServer, Database)

Create (Required: Applications Optional: MachineName, DatabaseServer, Database)

Delete (Required: Applications Optional: MachineName, DatabaseServer, Database)

DisableAllReceiveLocations (Required: Applications Optional: MachineName, DatabaseServer, Database)

EnableAllReceiveLocations (Required: Applications Optional: MachineName, DatabaseServer, Database)

DisableReceiveLocations (Required: Applications, ReceiveLocations Optional: MachineName, DatabaseServer, Database)

EnableReceiveLocations (Required: Applications, ReceiveLocations Optional: MachineName, DatabaseServer, Database)

ExportBindings (Required: BindingFile Optional: Application, MachineName, DatabaseServer, Database)

ExportToMsi (Required: Application, MsiPath Optional: MachineName, DatabaseServer, Database, IncludeGlobalPartyBinding, Resources)

ImportBindings (Required: BindingFile Optional: Application, MachineName, DatabaseServer, Database)

ImportFromMsi (Required: MsiPath Optional: MachineName, DatabaseServer, Database, Application, Overwrite)

Get (Optional: MachineName, DatabaseServer, Database)

RemoveReference (Required: Application, References Optional: MachineName, DatabaseServer, Database)

StartAll (Required: Applications Optional: MachineName, DatabaseServer, Database)

StartAllOrchestrations (Required: Applications Optional: MachineName, DatabaseServer, Database)

StartAllSendPortGroups (Required: Applications Optional: MachineName, DatabaseServer, Database)

StartAllSendPorts (Required: Applications Optional: MachineName, DatabaseServer, Database)

StartReferencedApplications (Required: Applications Optional: MachineName, DatabaseServer, Database)

StopAll (Required: Applications Optional: MachineName, DatabaseServer, Database)

StopReferencedApplications (Required: Applications Optional: MachineName, DatabaseServer, Database)

UndeployAllPolicies (Required: Applications Optional: MachineName, DatabaseServer, Database)

UnenlistAllOrchestrations (Required: Applications Optional: MachineName, DatabaseServer, Database)

UnenlistAllSendPortGroups (Required: Applications Optional: MachineName, DatabaseServer, Database)

UnenlistAllSendPorts (Required: Applications Optional: MachineName, DatabaseServer, Database)

Remote Execution Support: Yes

Namespace: MSBuild.ExtensionPack.BizTalk
Assembly: MSBuild.ExtensionPack.BizTalk (in MSBuild.ExtensionPack.BizTalk.dll) Version: 3.5.0.0

Examples

Xml Copy imageCopy
<Project ToolsVersion="3.5" DefaultTargets="Default" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    <PropertyGroup>
        <TPath>$(MSBuildProjectDirectory)\..\MSBuild.ExtensionPack.tasks</TPath>
        <TPath Condition="Exists('$(MSBuildProjectDirectory)\..\..\Common\MSBuild.ExtensionPack.tasks')">$(MSBuildProjectDirectory)\..\..\Common\MSBuild.ExtensionPack.tasks</TPath>
    </PropertyGroup>
    <Import Project="$(TPath)"/>
    <Target Name="Default">
        <ItemGroup>
            <Apps Include="An Application"/>
            <NewApps Include="NewExtensionPackApp">
                <!--<Default>true</Default>-->
                <Description>New ExtensionPack App</Description>
            </NewApps>
            <Reference Include="Another Application"/>
        </ItemGroup>
        <!-- Get a list of BizTalk Applications -->
        <MSBuild.ExtensionPack.BizTalk.BizTalkApplication TaskAction="Get">
            <Output TaskParameter="Applications" ItemName="ApplicationList"/>
        </MSBuild.ExtensionPack.BizTalk.BizTalkApplication>
        <Message Text="%(ApplicationList.Identity)"/>
        <!-- Add a Reference -->
        <MSBuild.ExtensionPack.BizTalk.BizTalkApplication TaskAction="AddReference" Application="An Application" References="@(Reference)"/>
        <!-- Remove a Reference -->
        <MSBuild.ExtensionPack.BizTalk.BizTalkApplication TaskAction="RemoveReference" Application="An Application" References="@(Reference)"/>
        <!-- Export an Application to an MSI -->
        <MSBuild.ExtensionPack.BizTalk.BizTalkApplication TaskAction="ExportToMsi" Application="An Application" MsiPath="C:\AnApplication.msi" IncludeGlobalPartyBinding="true"/>
        <!-- Import an Application from an MSI -->
        <MSBuild.ExtensionPack.BizTalk.BizTalkApplication TaskAction="ImportFromMsi" Application="An Application" MsiPath="C:\AnApplication.msi" Overwrite="true" Environment="DEV" />
        <!-- Check if the Applications in the Apps collection exist -->
        <MSBuild.ExtensionPack.BizTalk.BizTalkApplication TaskAction="CheckExists" Applications="@(Apps)"/>
        <!-- Execute a StartAll on the Apps Application collection -->
        <MSBuild.ExtensionPack.BizTalk.BizTalkApplication TaskAction="StartAll" Applications="@(Apps)"/>
        <!-- Execute a StopAll on the Apps Application collection -->
        <MSBuild.ExtensionPack.BizTalk.BizTalkApplication TaskAction="StopAll" Applications="@(Apps)"/>
        <!-- Force the creation of the Applications in the NewApps collection -->
        <MSBuild.ExtensionPack.BizTalk.BizTalkApplication TaskAction="Create" Applications="@(NewApps)" Force="true"/>
        <!-- Delete the Applications in the NewApps collection-->
        <MSBuild.ExtensionPack.BizTalk.BizTalkApplication TaskAction="Delete" Applications="@(NewApps)"/>
        <!-- Imports the specified bindings file into a BizTalk application -->
        <MSBuild.ExtensionPack.BizTalk.BizTalkApplication TaskAction="ImportBindings" BindingFile="C:\BindingInfo.xml" Application="An Application" />
        <!-- Exports a BizTalk application bindings to the specified file -->
        <MSBuild.ExtensionPack.BizTalk.BizTalkApplication TaskAction="ExportBindings" BindingFile="C:\BindingInfo.xml" Application="An Application" />
    </Target>
    <!-- Export an Application to a partial/incremental MSI -->
    <Target Name="ExportToMsi">
        <MSBuild Projects="@(Compile)" Targets="Build">
            <Output TaskParameter="TargetOutputs" ItemName="CompiledAssemblies" />
        </MSBuild>
        <MSBuild.ExtensionPack.Framework.Assembly TaskAction="GetInfo" NetAssembly="%(CompiledAssemblies.Identity)">
            <Output TaskParameter="OutputItems" ItemName="NetAssemblies" />
        </MSBuild.ExtensionPack.Framework.Assembly>
        <ItemGroup>
            <Resources Include="@(NetAssemblies->'%(FullName)')" />
            <Resources Include="Application/$(BtsApplicationName)" Condition=" '$(ExportBindings)'=='True' " />
        </ItemGroup>
        <MSBuild.ExtensionPack.BizTalk.BizTalkApplication TaskAction="ExportToMsi" Application="$(BtsApplicationName)" Resources="@(Resources)" MsiPath="$(TargetMsi)" IncludeGlobalPartyBinding="$(ExportBindings)"/>
    </Target>
</Project>
</Project>

Inheritance Hierarchy

System..::..Object
  Microsoft.Build.Utilities..::..Task
    MSBuild.ExtensionPack..::..BaseTask
      MSBuild.ExtensionPack.BizTalk..::..BizTalkApplication

See Also