0 people following this project (follow)

Project Description
If you would like to use MSBuild to register a WCF LOB Adapter in a given server, the custom tasks: RegisterWCFLOBAdapter and UnregisterWCFLOBAdapter can be used in a MSbuild deployment script to perform the installation/uninstallation procedure.

Usage:

The RegisterWCFLOBAdapter task can be used to register a WCF LOB Adapter through a MSBuild script as follows:

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="InstallWCFLOBAdapter">

<UsingTask AssemblyName="WhiteboardWorks.MSBuild.Tasks, Version=1.0.0.0, Culture=neutral, PublicKeyToken=46c420b90a74da39" TaskName="RegisterWCFLOBAdapter" />

<Target Name="InstallWCFLOBAdapter">

<RegisterWCFLOBAdapter AdapterAssemblyName="MyAdapterAssembly, Version=1.0.0.0, Culture=neutral,PublicKeyToken=c3e07219674fce83" BindingScheme="myadapter" BindingElementName="myAdapterBinding" BindingType="WhiteboardWorks.Adapters.MyAdapter.MyAdapterBindingCollectionElement" BindingElementType="WhiteboardWorks.Adapters.MyAdapter.MyAdapterBindingElementExtensionElement" BindingName="myAdapterBinding" />


The UnregisterWCFLOBAdapter task can be used to unregister a WCF LOB Adapter through a MSBuild script as follows:

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="UninstallWCFLOBAdapter">
<UsingTask AssemblyName="WhiteboardWorks.MSBuild.Tasks, Version=1.0.0.0, Culture=neutral, PublicKeyToken=46c420b90a74da39" TaskName="UnregisterWCFLOBAdapter" />


<Target Name="UninstallWCFLOBAdapter">

<UnregisterWCFLOBAdapter BindingScheme="myadapter" BindingName="myAdapterBinding" BindingElementName="myAdapterBinding" />

</Target>
</Project>

</Target>

</Project>



For more information visit:

http://whiteboardworks.com/2010/02/installing-wcf-lob-adapters-with-msbuild/

Last edited Mar 20 2010 at 1:09 PM by brunospinelli, version 5