BizTalkApplication Class | MSBuild Extension Pack Help 4.0.12.0 |
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
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.
Name | Description | |
---|---|---|
BizTalkApplication |
Name | Description | |
---|---|---|
Application |
Sets the Application Name
| |
Applications |
Get or sets the Application Item Collection
| |
BindingFile |
The Binding File to Import / Export
| |
Database |
Sets the Management Database to connect to. Default is BizTalkMgmtDb
| |
DatabaseServer |
Sets the DatabaseServer to connect to. Default is MachineName
| |
Default |
Sets whether the Application is the default application
| |
Description |
Sets the Application description
| |
Environment |
The environment to deploy.
| |
Exists |
Gets whether the Application exists
| |
Force |
Set to true to delete an existing Application when Create is called.
| |
IncludeGlobalPartyBinding |
Set to true to export the global party information. Default is false.
| |
MsiPath |
Set the path to export the Application MSI to. The directory path must exist and have appropriate permissions to write to.
| |
Overwrite |
Update existing resources. If not specified and resource exists, import will fail. Default is false.
| |
ReceiveLocations |
sets the ReceiveLocations to operate on.
| |
References |
Sets the Referenced Applications
| |
Resources |
Sets the Resources to export. If not supplied, all resources are exported.
|
<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>