BizTalkAssembly Class | MSBuild Extension Pack Help 4.0.12.0 |
Valid TaskActions are:
Add (Required: Application, Assemblies Optional: MachineName, DatabaseServer, DeploymentPath, Database, Gac, Force, GacOnAddResource, GacOnMSIFileImport, GacOnMSIFileInstall, DestinationLocation)
Remove (Required: Application, Assemblies Optional: MachineName, DatabaseServer, Database)
CheckExists (Required: Application, Assemblies Optional: MachineName, DatabaseServer, Database Output: Exists)
Remote Execution Support: Yes
Inheritance Hierarchy
MSBuild.ExtensionPackBaseTask
MSBuild.ExtensionPack.BizTalkBizTalkAssembly
Namespace: MSBuild.ExtensionPack.BizTalk
Assembly: MSBuild.ExtensionPack.BizTalk (in MSBuild.ExtensionPack.BizTalk.dll) Version: 4.0.0.0
The BizTalkAssembly type exposes the following members.
Constructors
Name | Description | |
---|---|---|
BizTalkAssembly |
Properties
Name | Description | |
---|---|---|
Application |
Sets the Application Name
| |
Assemblies |
Sets the list of Assemblies
| |
Database |
Sets the Management Database to connect to. Default is BizTalkMgmtDb
| |
DatabaseServer |
Sets the DatabaseServer to connect to. Default is MachineName
| |
DeploymentPath |
Sets the deployment path for assemblies
| |
DestinationLocation |
Sets the DestinationLocation
| |
Exists |
Gets whether the assembly / assemblies exist in BizTalk
| |
Force |
Set to true to overwrite existing assemblies when deploy is called
| |
Gac |
Set to true to gac the biztalk assemblies. Default is true. Note that if you set GacOnMSIFileInstall to true, the assembly will also be added to the gac.
| |
GacOnAddResource |
Sets whether to GAC the assembly on add resource. Default is true
| |
GacOnMsiFileImport |
Sets whether to GAC the assembly on file import. Default is true
| |
GacOnMsiFileInstall |
Sets whether to GAC the assembly on file install. Default is false
|
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> <BizTalkAssemblies Include="YOURASSEMBLY"/> </ItemGroup> <!-- Add the Assemblies --> <MSBuild.ExtensionPack.BizTalk.BizTalkAssembly TaskAction="Add" Force="true" Gac="true" MachineName="$(COMPUTERNAME)" Application="BizTalk Application 1" Assemblies="@(BizTalkAssemblies)" /> <!-- Check an Assembly Exists --> <MSBuild.ExtensionPack.BizTalk.BizTalkAssembly TaskAction="CheckExists" MachineName="$(COMPUTERNAME)" Application="BizTalk Application 1" Assemblies="@(BizTalkAssemblies)"> <Output TaskParameter="Exists" PropertyName="AssemblyExists" /> </MSBuild.ExtensionPack.BizTalk.BizTalkAssembly> <Message Text="ASSEMBLY EXISTS: $(AssemblyExists)"/> <!-- Remove the Assemblies --> <MSBuild.ExtensionPack.BizTalk.BizTalkAssembly TaskAction="Remove" MachineName="$(COMPUTERNAME)" Application="BizTalk Application 1" Assemblies="@(BizTalkAssemblies)" /> </Target> </Project>
See Also