BizTalkHost ClassMSBuild Extension Pack Help 4.0.12.0
Valid TaskActions are:

CheckExists (Required: HostName Optional: MachineName, DatabaseServer, Database Output: Exists)

Create (Required: HostName, WindowsGroup Optional: MachineName, DatabaseServer, Database, HostType, Use32BitHostOnly, Trusted, Tracking, Default, AdditionalHostSettings)

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

Update (Required: HostName, WindowsGroup Optional: MachineName, Database, DatabaseServer, HostType, Use32BitHostOnly, Trusted, Tracking, Default, AdditionalHostSettings)

Remote Execution Support: Yes

Inheritance Hierarchy

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

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

The BizTalkHost type exposes the following members.

Constructors

  NameDescription
Public methodBizTalkHost
Top
Properties

  NameDescription
Public propertyAdditionalHostSettings
An optional semi-colon delimited list of name value pairs to set additional Host settings, e.g. MessagePublishSampleSpaceSize=1;MessagePublishOverdriveFactor=100. For available settings, see: http://msdn.microsoft.com/en-us/library/aa560307(BTS.10).aspx
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 the host as Default. Default is false.
Public propertyExists
Gets whether the Host exists
Public propertyHostName
Sets the Host Name. The following characters are not permitted: `~!@#$%^&*()+=[]{}|\/;:\""'<>,.?-<space>
Public propertyHostType
Sets the Host Type. Supports: InProcess, Isolated. Default is InProcess.
Public propertyTracking
Sets the host as Tracking. Default is false.
Public propertyTrusted
Sets the host as Trusted. Default is false.
Public propertyUse32BitHostOnly
Sets the Host to 32BitOnly. Default is false.
Public propertyWindowsGroup
Set the windows group. This may be in the form domain\group
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">
        <!-- Create a Host -->
        <MSBuild.ExtensionPack.BizTalk.BizTalkHost TaskAction="Create" HostName="MSBEPTESTHOST" Tracking="true" WindowsGroup="$(ComputerName)\BizTalk Application Users" HostType="InProcess" Use32BitHostOnly="false"/>
        <!-- Update a Host -->
        <MSBuild.ExtensionPack.BizTalk.BizTalkHost TaskAction="Update" HostName="MSBEPTESTHOST" Tracking="false" WindowsGroup="$(ComputerName)\BizTalk Application Users" HostType="InProcess" Use32BitHostOnly="false" AdditionalHostSettings="MessageDeliverySampleSpaceSize=123;ProcessMemoryThreshold=31"/>
        <!-- Delete a Host -->
        <MSBuild.ExtensionPack.BizTalk.BizTalkHost TaskAction="Delete" HostName="MSBEPTESTHOST"/>   
    </Target>
</Project>
See Also

Reference