BizTalkAdaptor ClassMSBuild Extension Pack Help 4.0.12.0
Valid TaskActions are:

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

Create (Required: AdaptorName, MgmtCLSIDOptional: MachineName, DatabaseServer, Database, Comment, Constraints)

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

Remote Execution Support: Yes

Inheritance Hierarchy

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

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

The BizTalkAdaptor type exposes the following members.

Constructors

  NameDescription
Public methodBizTalkAdaptor
Top
Properties

  NameDescription
Public propertyAdaptorName
Sets the Adaptor Name.
Public propertyComment
Sets the Adaptor comment.
Public propertyConstraints
Sets the Constraints
Public propertyDatabase
Sets the Management Database to connect to. Default is BizTalkMgmtDb
Public propertyDatabaseServer
Sets the DatabaseServer to connect to. Default is MachineName
Public propertyExists
Gets whether the Adaptor exists
Public propertyMgmtCLSID
Sets the MgmtCLSID guid
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">
        <!-- Check an Adaptor Exists -->
        <MSBuild.ExtensionPack.BizTalk.BizTalkAdaptor TaskAction="CheckExists" AdaptorName="WCF-SQL">
            <Output TaskParameter="Exists" PropertyName="AdaptorExists" />
        </MSBuild.ExtensionPack.BizTalk.BizTalkAdaptor>
        <Message Text="WCF-SQL Exists: $(AdaptorExists)"/>
        <!-- Delete an Adaptor -->
        <MSBuild.ExtensionPack.BizTalk.BizTalkAdaptor TaskAction="Delete" AdaptorName="WCF-SQL"/>
        <!-- Check an Adaptor Exists -->
        <MSBuild.ExtensionPack.BizTalk.BizTalkAdaptor TaskAction="CheckExists" AdaptorName="WCF-SQL">
            <Output TaskParameter="Exists" PropertyName="AdaptorExists" />
        </MSBuild.ExtensionPack.BizTalk.BizTalkAdaptor>
        <Message Text="WCF-SQL Exists: $(AdaptorExists)"/>
        <!-- Create an Adaptor -->
        <MSBuild.ExtensionPack.BizTalk.BizTalkAdaptor TaskAction="Create" AdaptorName="WCF-SQL" MgmtCLSID="{59b35d03-6a06-4734-a249-ef561254ecf7}" Comment="WCF-SQL adapter" Constraints="15369"/>
        <!-- Check an Adaptor Exists -->
        <MSBuild.ExtensionPack.BizTalk.BizTalkAdaptor TaskAction="CheckExists" AdaptorName="WCF-SQL">
            <Output TaskParameter="Exists" PropertyName="AdaptorExists" />
            <Output TaskParameter="Comment" PropertyName="AdaptorComment" />
        </MSBuild.ExtensionPack.BizTalk.BizTalkAdaptor>
        <Message Text="WCF-SQL Exists: $(AdaptorExists)"/>
        <Message Text="WCF-SQL Comment: $(AdaptorComment)"/>
    </Target>
</Project>
See Also

Reference