BizTalkApplication Class

MSBuild Extension Pack

BizTalkApplication Class MSBuild Extension Pack Help 4.0.12.0
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

Inheritance Hierarchy

SystemObject  Microsoft.Build.UtilitiesTask
    MSBuild.ExtensionPackBaseTask
      MSBuild.ExtensionPack.BizTalkBizTalkApplication

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

The BizTalkApplication type exposes the following members.

Constructors

  NameDescription
Public methodBizTalkApplication
Top
Properties

  NameDescription
Public propertyApplication
Sets the Application Name
Public propertyApplications
Get or sets the Application Item Collection
Public propertyBindingFile
The Binding File to Import / Export
Public propertyDatabase
Sets the Management Database to connect to. Default is BizTalkMgmtDb
Public propertyDatabaseServer
Sets the DatabaseServer to connect to. Default is MachineName
Public propertyDefault
Sets whether the Application is the default application
Public propertyDescription
Sets the Application description
Public propertyEnvironment
The environment to deploy.
Public propertyExists
Gets whether the Application exists
Public propertyForce
Set to true to delete an existing Application when Create is called.
Public propertyIncludeGlobalPartyBinding
Set to true to export the global party information. Default is false.
Public propertyMsiPath
Set the path to export the Application MSI to. The directory path must exist and have appropriate permissions to write to.
Public propertyOverwrite
Update existing resources. If not specified and resource exists, import will fail. Default is false.
Public propertyReceiveLocations
sets the ReceiveLocations to operate on.
Public propertyReferences
Sets the Referenced Applications
Public propertyResources
Sets the Resources to export. If not supplied, all resources are exported.
Top
Examples

<Project ToolsVersion="4.0" 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>
See Also

Reference